summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-10-01 20:10:49 -0400
committermorpheus65535 <[email protected]>2023-10-01 20:10:49 -0400
commit6b03e44fdce9fec5584baee540269e4b6294de47 (patch)
tree0609e34507ce4198f2ef9c15b05dad5a0472add1
parent1f187d89ca80e3734bf0831e2f7940bb01235695 (diff)
parent654934b5e1d9a4637e53c6882b2dfc3213600f54 (diff)
downloadbazarr-6b03e44fdce9fec5584baee540269e4b6294de47.tar.gz
bazarr-6b03e44fdce9fec5584baee540269e4b6294de47.zip
Merge remote-tracking branch 'origin/development' into developmentv1.3.1-beta.7
-rw-r--r--libs/subliminal_patch/providers/embeddedsubtitles.py2
-rw-r--r--libs/subliminal_patch/providers/hdbits.py8
2 files changed, 4 insertions, 6 deletions
diff --git a/libs/subliminal_patch/providers/embeddedsubtitles.py b/libs/subliminal_patch/providers/embeddedsubtitles.py
index 76e8afdf4..828648432 100644
--- a/libs/subliminal_patch/providers/embeddedsubtitles.py
+++ b/libs/subliminal_patch/providers/embeddedsubtitles.py
@@ -328,7 +328,7 @@ def _discard_possible_incomplete_subtitles(streams):
for stream in streams:
# 500 < 1200
- if not stream.language.forced and stream.tags.frames < max_frames // 2:
+ if not stream.language.forced and stream.tags.frames < max_frames // 3:
logger.debug(
"Possible bad subtitle found: %s (%s frames - %s frames)",
stream,
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(