chore: Skip anime

pull/2480/head
Anderson Oki 7 months ago
parent 86b889d3b6
commit e0c5568835

@ -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