Reset posterUrl and fanartUrl for each check

This commit is contained in:
DariusIII
2019-11-21 18:16:46 +01:00
parent 6069fdb127
commit f3d48bcbec
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -99,6 +99,7 @@ class TMDB extends TV
foreach ($res as $row) {
$tmdbid = false;
$this->posterUrl = '';
// Clean the show name for better match probability
$release = $this->parseInfo($row['searchname']);
+1
View File
@@ -89,6 +89,7 @@ class TVDB extends TV
foreach ($res as $row) {
$tvDbId = false;
$this->posterUrl = $this->fanartUrl = '';
// Clean the show name for better match probability
$release = $this->parseInfo($row['searchname']);
+2 -1
View File
@@ -76,6 +76,7 @@ class TVMaze extends TV
foreach ($res as $row) {
$tvMazeId = false;
$this->posterUrl = $this->fanartUrl = '';
// Clean the show name for better match probability
$release = $this->parseInfo($row['searchname']);
@@ -319,7 +320,7 @@ class TVMaze extends TV
$hasCover = 0;
// Try to get the Poster
if (! empty($this->posterUrl)) {
if (! empty( v )) {
$hasCover = $ri->saveImage($videoId, $this->posterUrl, $this->imgSavePath);
// Mark it retrieved if we saved an image