Apply the cap to all anime types

This commit is contained in:
Eduard Urbach 2020-11-07 06:10:22 +09:00
parent 9057749cf9
commit e5da604921
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -382,7 +382,7 @@ func (anime *Anime) RefreshEpisodes() error {
episodes = episodes.Merge(shoboiEpisodes)
// Cap the number of episodes
if anime.Status == "finished" && anime.EpisodeCount > 0 && len(episodes) > anime.EpisodeCount {
if anime.EpisodeCount > 0 && len(episodes) > anime.EpisodeCount {
episodes = episodes[:anime.EpisodeCount]
}