mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add check for empty string in fetchFanartTVProperties function.
This commit is contained in:
@@ -772,16 +772,22 @@ class Movie
|
||||
return false;
|
||||
}
|
||||
$ret = [];
|
||||
if (isset($art['moviebackground'][0]['url'])) {
|
||||
if (isset($art['moviebackground'][0]['url']) && $art['moviebackground'][0]['url'] != '') {
|
||||
$ret['backdrop'] = $art['moviebackground'][0]['url'];
|
||||
} elseif (isset($art['moviethumb'][0]['url'])) {
|
||||
} else if (isset($art['moviethumb'][0]['url']) && $art['moviethumb'][0]['url'] != '') {
|
||||
$ret['backdrop'] = $art['moviethumb'][0]['url'];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if (isset($art['movieposter'][0]['url'])) {
|
||||
if (isset($art['movieposter'][0]['url']) && $art['movieposter'][0]['url'] != '') {
|
||||
$ret['cover'] = $art['movieposter'][0]['url'];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if (isset($art['moviebanner'][0]['url'])) {
|
||||
if (isset($art['moviebanner'][0]['url']) && $art['moviebanner'][0]['url'] != '') {
|
||||
$ret['banner'] = $art['moviebanner'][0]['url'];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isset($ret['backdrop']) && isset($ret['cover'])) {
|
||||
|
||||
Reference in New Issue
Block a user