From 2782551c9bd5418e6fe0484a4002b4a350869917 Mon Sep 17 00:00:00 2001 From: Anderson Shindy Oki Date: Tue, 30 Apr 2024 19:28:41 +0900 Subject: [PATCH] Fixed Animetosho provider error for tv shows * chore: Skip anime * wip --- custom_libs/subliminal_patch/providers/animetosho.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_libs/subliminal_patch/providers/animetosho.py b/custom_libs/subliminal_patch/providers/animetosho.py index f242c420f..550e2bf4b 100644 --- a/custom_libs/subliminal_patch/providers/animetosho.py +++ b/custom_libs/subliminal_patch/providers/animetosho.py @@ -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]