From 9a327b9e4d9f49d3cc42f8f29a6f5b31d6dd4263 Mon Sep 17 00:00:00 2001 From: Vitiko Date: Sun, 17 Apr 2022 22:10:15 -0400 Subject: [PATCH] no log: fix AttributeError on providers mixin --- libs/subliminal_patch/providers/mixins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/mixins.py b/libs/subliminal_patch/providers/mixins.py index 5b9358a45..6fa47513a 100644 --- a/libs/subliminal_patch/providers/mixins.py +++ b/libs/subliminal_patch/providers/mixins.py @@ -101,7 +101,9 @@ class ProviderSubtitleArchiveMixin(object): if not isinstance(episodes, list): episodes = [episodes] - episode_matches = episodes is not None and any(subtitle.episode == epi for epi in episodes) + episode_matches = False + if is_episode: + episode_matches = episodes is not None and any(subtitle.episode == epi for epi in episodes) if not is_episode or ( (