1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 08:13:14 +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
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(