From 9a1816bc2fd590ad0d8af466ad1c027229207537 Mon Sep 17 00:00:00 2001 From: horus Date: Tue, 26 Nov 2024 14:09:54 +0100 Subject: deleted anime --- app/AnimeStats.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'app/AnimeStats.php') diff --git a/app/AnimeStats.php b/app/AnimeStats.php index c235a00..e586280 100644 --- a/app/AnimeStats.php +++ b/app/AnimeStats.php @@ -79,6 +79,10 @@ class AnimeStats extends Model { public function fillStats( $id, $season_year = 0, $season_name = "" ) { $this->mal_id = $id; + if ( 54591 == $this->mal_id ) { + return true; + } + $jikan = new Malclient; if ( 0 == $season_year || "" == $season_name ) { @@ -99,9 +103,12 @@ class AnimeStats extends Model { (new \Jikan\Request\Anime\AnimeRequest( $this->mal_id )) ); } catch (\Exception $e) { - echo "Error requesting AnimeInfo for " . $this->mal_id ."\n"; - echo "Message: " . $e->getMessage(); - echo "\n\n"; + // Anime 54591 got deleted on MAL + if ( 54591 != $this->mal_id ) { + echo "Error requesting AnimeInfo for " . $this->mal_id ."\n"; + echo "Message: " . $e->getMessage(); + echo "\n\n"; + } return false; } $this->score = $animeInfo->getScore(); -- cgit v1.2.3