From 4c6c0c24213c614cefa29a2b498d94b7e9bfed34 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 18 Dec 2019 09:49:24 +0100 Subject: [PATCH] Check if $release['cleanname'] is set --- Blacklight/processing/tv/TMDB.php | 4 ++-- Blacklight/processing/tv/TVDB.php | 4 ++-- Blacklight/processing/tv/TVMaze.php | 4 ++-- Blacklight/processing/tv/TraktTv.php | 4 ++-- Changelog | 2 ++ package.json | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Blacklight/processing/tv/TMDB.php b/Blacklight/processing/tv/TMDB.php index d671a3a39..e84569436 100755 --- a/Blacklight/processing/tv/TMDB.php +++ b/Blacklight/processing/tv/TMDB.php @@ -205,12 +205,12 @@ class TMDB extends TV } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TRAKT, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TRAKT, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } } diff --git a/Blacklight/processing/tv/TVDB.php b/Blacklight/processing/tv/TVDB.php index 2e399e6e7..ffc1ea7d3 100755 --- a/Blacklight/processing/tv/TVDB.php +++ b/Blacklight/processing/tv/TVDB.php @@ -198,12 +198,12 @@ class TVDB extends TV } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TVMAZE, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } else { //Parsing failed, take it out of the queue for examination $this->setVideoNotFound(parent::FAILED_PARSE, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } } diff --git a/Blacklight/processing/tv/TVMaze.php b/Blacklight/processing/tv/TVMaze.php index 29693e704..e8f83b6b2 100644 --- a/Blacklight/processing/tv/TVMaze.php +++ b/Blacklight/processing/tv/TVMaze.php @@ -184,12 +184,12 @@ class TVMaze extends TV } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TMDB, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_TMDB, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } } diff --git a/Blacklight/processing/tv/TraktTv.php b/Blacklight/processing/tv/TraktTv.php index c64ca470e..7d459eee1 100755 --- a/Blacklight/processing/tv/TraktTv.php +++ b/Blacklight/processing/tv/TraktTv.php @@ -181,12 +181,12 @@ class TraktTv extends TV } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_IMDB, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } else { //Processing failed, set the episode ID to the next processing group $this->setVideoNotFound(parent::PROCESS_IMDB, $row['id']); - $this->titleCache[] = $release['cleanname']; + $this->titleCache[] = $release['cleanname'] ?? null; } } } diff --git a/Changelog b/Changelog index 16d98cbc4..061e49608 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2019-12-18 DariusIII + * Chg: Check if $release['cleanname'] is set 2019-12-15 DariusIII * Chg: Update install_tmux.sh to install tmux 3.0a 2019-12-11 DariusIII diff --git a/package.json b/package.json index 0635a9ac0..4503b6457 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "axios": "^0.19", "cross-env": "^6.0.3", "jquery": "^3.4.1", - "laravel-mix": "^5.0.0", + "laravel-mix": "^5.0.1", "lodash": "^4.17.15", "popper.js": "^1.16.0", "prettier": "^1.19.1",