1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 00:33:27 +00:00

HDBits provider: improve episode matching

This commit is contained in:
Vitiko 2023-09-30 23:36:35 -04:00
parent bad77e2ce7
commit 3942264d00

View file

@ -124,11 +124,9 @@ class HDBitsProvider(Provider):
continue continue
if episode is not None: if episode is not None:
guessed = _memoized_episode_guess(subtitle["title"]) eps = _memoized_episode_guess(subtitle["title"]).get("episode")
if guessed.get("episode") is not None and episode != guessed["episode"]: if eps is not None and episode not in eps:
logger.debug( logger.debug("Not matched: %s != %s", subtitle["title"], episode)
"Episode not matched: %s != %s", subtitle["title"], episode
)
continue continue
parsed = HDBitsSubtitle( parsed = HDBitsSubtitle(