summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVitiko <[email protected]>2023-09-30 23:36:35 -0400
committerVitiko <[email protected]>2023-09-30 23:36:35 -0400
commit3942264d0057860e53be8d18e8dfb093352f0dbe (patch)
treee28f4d10df1d44919a218816c1946a4d364ace3e
parentbad77e2ce7aa61d8202d8b0bd505ab24610f12d5 (diff)
downloadbazarr-3942264d0057860e53be8d18e8dfb093352f0dbe.tar.gz
bazarr-3942264d0057860e53be8d18e8dfb093352f0dbe.zip
HDBits provider: improve episode matchingv1.3.1-beta.6
-rw-r--r--libs/subliminal_patch/providers/hdbits.py8
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(