Fixed Animetosho provider error for tv shows

* chore: Skip anime

* wip
pull/2481/head v1.4.3-beta.28
Anderson Shindy Oki 8 months ago committed by GitHub
parent 1c2538ef3c
commit 2782551c9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -88,7 +88,9 @@ class AnimeToshoProvider(Provider, ProviderSubtitleArchiveMixin):
def list_subtitles(self, video, languages):
if not video.series_anidb_episode_id:
raise ProviderError("Video does not have an AnimeTosho Episode ID!")
logger.debug('Skipping video %r. It is not an anime or the anidb_episode_id could not be identified', video)
return []
return [s for s in self._get_series(video.series_anidb_episode_id) if s.language in languages]

Loading…
Cancel
Save