From 8d703f0857b794496d9d7e9db2fefb5666ffde3e Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 22 Nov 2019 23:55:14 +0100 Subject: [PATCH] Revert setting video id even if there is no episode --- Blacklight/processing/tv/TMDB.php | 4 ++-- Blacklight/processing/tv/TVDB.php | 3 ++- Blacklight/processing/tv/TVMaze.php | 4 ++-- Blacklight/processing/tv/TraktTv.php | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Blacklight/processing/tv/TMDB.php b/Blacklight/processing/tv/TMDB.php index 8dc827c4e..b37bc78cd 100755 --- a/Blacklight/processing/tv/TMDB.php +++ b/Blacklight/processing/tv/TMDB.php @@ -198,9 +198,9 @@ class TMDB extends TV $this->colorCli->primary('Found TMDB Match!', true); } continue; - } else { - $this->setVideoIdFound($videoId, $row['id'], 0); } + //Processing failed, set the episode ID to the next processing group + $this->setVideoNotFound(parent::PROCESS_TRAKT, $row['id']); } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TRAKT, $row['id']); diff --git a/Blacklight/processing/tv/TVDB.php b/Blacklight/processing/tv/TVDB.php index eaf20446c..5eb81d68b 100755 --- a/Blacklight/processing/tv/TVDB.php +++ b/Blacklight/processing/tv/TVDB.php @@ -191,7 +191,8 @@ class TVDB extends TV $this->colorCli->primary('Found TVDB Match!', true); } } else { - $this->setVideoIdFound($videoId, $row['id'], 0); + //Processing failed, set the episode ID to the next processing group + $this->setVideoNotFound(parent::PROCESS_TVMAZE, $row['id']); } } else { //Processing failed, set the episode ID to the next processing group diff --git a/Blacklight/processing/tv/TVMaze.php b/Blacklight/processing/tv/TVMaze.php index ecd5048e0..e01f2835a 100644 --- a/Blacklight/processing/tv/TVMaze.php +++ b/Blacklight/processing/tv/TVMaze.php @@ -177,9 +177,9 @@ class TVMaze extends TV $this->colorCli->primary('Found TVMaze Match!', true); } continue; - } else { - $this->setVideoIdFound($videoId, $row['id'], 0); } + //Processing failed, set the episode ID to the next processing group + $this->setVideoNotFound(parent::PROCESS_TMDB, $row['id']); } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TMDB, $row['id']); diff --git a/Blacklight/processing/tv/TraktTv.php b/Blacklight/processing/tv/TraktTv.php index 2d45d1d7c..83eac6de8 100755 --- a/Blacklight/processing/tv/TraktTv.php +++ b/Blacklight/processing/tv/TraktTv.php @@ -174,9 +174,9 @@ class TraktTv extends TV $this->colorCli->primary('Found TRAKT Match!', true); } continue; - } else { - $this->setVideoIdFound($videoId, $row['id'], 0); } + //Processing failed, set the episode ID to the next processing group + $this->setVideoNotFound(parent::PROCESS_IMDB, $row['id']); } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_IMDB, $row['id']);