mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Reset posterUrl and fanartUrl for each check
This commit is contained in:
@@ -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']);
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user