diff options
| author | horus | 2020-04-04 19:30:44 +0200 |
|---|---|---|
| committer | horus | 2020-04-04 19:30:44 +0200 |
| commit | 13f13fde6818d12334dd58d6dcdae256b89ebd67 (patch) | |
| tree | a2527a2eecd2e9d73b2cf7ff3432e66f668f62f7 /app/Anime.php | |
| parent | e49d4af2d406dcbacccd1c76a10b869a49b67857 (diff) | |
| download | senpai-13f13fde6818d12334dd58d6dcdae256b89ebd67.tar.gz | |
Rejects every anime with less than 10000 members.
Diffstat (limited to 'app/Anime.php')
| -rw-r--r-- | app/Anime.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Anime.php b/app/Anime.php index 76eca09..e6d73f1 100644 --- a/app/Anime.php +++ b/app/Anime.php @@ -47,10 +47,17 @@ class Anime extends Model { echo "\n\n"; } + if ( 10000 > $animeInfo->getMembers() ) { + echo "Anime (" . $this->mal_id . ") has only " . $animeInfo->getMembers() . " Members. Not worth to keep. Skipping\n"; + return; + } + + /* if ( strtolower("not yet aired") == strtolower($animeInfo->getStatus()) ) { echo "Anime (" . $this->mal_id . ") has not aired yet. Skipping\n"; return; } + */ $this->url = $animeInfo->GetUrl(); $this->image_url = $animeInfo->getImageUrl(); |
