mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-14 03:49:48 +01:00
solofield thumbnail fix
This commit is contained in:
parent
e4f94c43db
commit
435913a1e5
|
@ -180,17 +180,34 @@ class solofield{
|
||||||
|
|
||||||
if(count($thumb) !== 0){
|
if(count($thumb) !== 0){
|
||||||
|
|
||||||
$thumb = [
|
$uri =
|
||||||
"ratio" => "1:1",
|
$this->fuckhtml
|
||||||
"url" =>
|
->getTextContent(
|
||||||
"https://solofield.net" .
|
$thumb[0]
|
||||||
$this->fuckhtml
|
["attributes"]
|
||||||
->getTextContent(
|
["src"]
|
||||||
$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{
|
}else{
|
||||||
|
|
||||||
$thumb = [
|
$thumb = [
|
||||||
|
|
Loading…
Reference in a new issue