solofield thumbnail fix
This commit is contained in:
parent
e4f94c43db
commit
435913a1e5
|
@ -180,6 +180,16 @@ class solofield{
|
|||
|
||||
if(count($thumb) !== 0){
|
||||
|
||||
$uri =
|
||||
$this->fuckhtml
|
||||
->getTextContent(
|
||||
$thumb[0]
|
||||
["attributes"]
|
||||
["src"]
|
||||
);
|
||||
|
||||
if(stripos($uri, "now_printing") === false){
|
||||
|
||||
$thumb = [
|
||||
"ratio" => "1:1",
|
||||
"url" =>
|
||||
|
@ -198,6 +208,13 @@ class solofield{
|
|||
"url" => null
|
||||
];
|
||||
}
|
||||
}else{
|
||||
|
||||
$thumb = [
|
||||
"ratio" => null,
|
||||
"url" => null
|
||||
];
|
||||
}
|
||||
|
||||
$out["web"][] = [
|
||||
"title" =>
|
||||
|
|
Loading…
Reference in New Issue