From 1ed4838d367ad1841d09b3c1bdf743aa4b278f46 Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 4 Apr 2020 19:31:05 +0200 Subject: Bugfix. --- app/Libraries/Background.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Libraries/Background.php b/app/Libraries/Background.php index 7f5f709..ea99126 100644 --- a/app/Libraries/Background.php +++ b/app/Libraries/Background.php @@ -123,7 +123,6 @@ class Background { ); foreach($season->anime as $entry) { - if ( Anime::where('mal_id', $entry->getMalID())->exists() ) { /** * We already have this anime saved. @@ -140,7 +139,8 @@ class Background { sleep(10); $anime->fill( $entry->getMalID(), $is_airing=true ); - if ( "" == $anime->mal_url ) { + if ( "" == $anime->url ) { + echo "saveSeason: url is empty for: " . $entry->getMalId() . "\n"; continue; } -- cgit v1.2.3