forked from lolcat/4get
1
0
Fork 0

solofield thumbnail fix

This commit is contained in:
lolcat 2024-09-01 20:59:10 -04:00
parent e4f94c43db
commit 435913a1e5
1 changed files with 28 additions and 11 deletions

View File

@ -180,17 +180,34 @@ class solofield{
if(count($thumb) !== 0){
$thumb = [
"ratio" => "1:1",
"url" =>
"https://solofield.net" .
$this->fuckhtml
->getTextContent(
$thumb[0]
["attributes"]
["src"]
)
];
$uri =
$this->fuckhtml
->getTextContent(
$thumb[0]
["attributes"]
["src"]
);
if(stripos($uri, "now_printing") === false){
$thumb = [
"ratio" => "1:1",
"url" =>
"https://solofield.net" .
$this->fuckhtml
->getTextContent(
$thumb[0]
["attributes"]
["src"]
)
];
}else{
$thumb = [
"ratio" => null,
"url" => null
];
}
}else{
$thumb = [