Skip to content

Commit

Permalink
Fixed Animetosho provider error for tv shows
Browse files Browse the repository at this point in the history
* chore: Skip anime

* wip
  • Loading branch information
anderson-oki committed Apr 30, 2024
1 parent 1c2538e commit 2782551
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_libs/subliminal_patch/providers/animetosho.py
Expand Up @@ -88,7 +88,9 @@ def terminate(self):

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]

Expand Down

0 comments on commit 2782551

Please sign in to comment.