From f3d48bcbec1d386a9a1a7aa4e7c6ca2bd427f252 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 21 Nov 2019 18:16:46 +0100 Subject: [PATCH] Reset posterUrl and fanartUrl for each check --- Blacklight/processing/tv/TMDB.php | 1 + Blacklight/processing/tv/TVDB.php | 1 + Blacklight/processing/tv/TVMaze.php | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Blacklight/processing/tv/TMDB.php b/Blacklight/processing/tv/TMDB.php index befba942f..b37bc78cd 100755 --- a/Blacklight/processing/tv/TMDB.php +++ b/Blacklight/processing/tv/TMDB.php @@ -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']); diff --git a/Blacklight/processing/tv/TVDB.php b/Blacklight/processing/tv/TVDB.php index 8409e53ea..9c3f24738 100755 --- a/Blacklight/processing/tv/TVDB.php +++ b/Blacklight/processing/tv/TVDB.php @@ -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']); diff --git a/Blacklight/processing/tv/TVMaze.php b/Blacklight/processing/tv/TVMaze.php index fb99169f5..0f9905695 100755 --- a/Blacklight/processing/tv/TVMaze.php +++ b/Blacklight/processing/tv/TVMaze.php @@ -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