diff options
| author | horus | 2024-11-26 14:09:54 +0100 |
|---|---|---|
| committer | horus | 2024-11-26 14:09:54 +0100 |
| commit | 9a1816bc2fd590ad0d8af466ad1c027229207537 (patch) | |
| tree | a2e454eaaca9e51fd504d1d8b8b683b24a1e26cf /app/AnimeStats.php | |
| parent | 05e4351d5c100762881982f3c518e2ba8ee3bee3 (diff) | |
| download | senpai-9a1816bc2fd590ad0d8af466ad1c027229207537.tar.gz | |
Diffstat (limited to 'app/AnimeStats.php')
| -rw-r--r-- | app/AnimeStats.php | 13 |
1 files changed, 10 insertions, 3 deletions
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(); |
