diff options
author | Vitiko <[email protected]> | 2023-09-30 23:36:35 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2023-09-30 23:36:35 -0400 |
commit | 3942264d0057860e53be8d18e8dfb093352f0dbe (patch) | |
tree | e28f4d10df1d44919a218816c1946a4d364ace3e | |
parent | bad77e2ce7aa61d8202d8b0bd505ab24610f12d5 (diff) | |
download | bazarr-3942264d0057860e53be8d18e8dfb093352f0dbe.tar.gz bazarr-3942264d0057860e53be8d18e8dfb093352f0dbe.zip |
HDBits provider: improve episode matchingv1.3.1-beta.6
-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( |