diff options
Diffstat (limited to 'libs/subliminal_patch/providers/hdbits.py')
-rw-r--r-- | libs/subliminal_patch/providers/hdbits.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/subliminal_patch/providers/hdbits.py b/libs/subliminal_patch/providers/hdbits.py index 1d2fc87ce..6396b6d15 100644 --- a/libs/subliminal_patch/providers/hdbits.py +++ b/libs/subliminal_patch/providers/hdbits.py @@ -124,11 +124,9 @@ class HDBitsProvider(Provider): continue if episode is not None: - guessed = _memoized_episode_guess(subtitle["title"]) - if guessed.get("episode") is not None and episode != guessed["episode"]: - logger.debug( - "Episode not matched: %s != %s", subtitle["title"], episode - ) + eps = _memoized_episode_guess(subtitle["title"]).get("episode") + if eps is not None and episode not in eps: + logger.debug("Not matched: %s != %s", subtitle["title"], episode) continue parsed = HDBitsSubtitle( |