summaryrefslogtreecommitdiffhomepage
path: root/custom_libs/subliminal_patch
diff options
context:
space:
mode:
authorpannal <[email protected]>2024-10-10 19:19:08 +0200
committerGitHub <[email protected]>2024-10-10 13:19:08 -0400
commitf50bcf34ac3c246d21a69dc3cc2f2eba63314c21 (patch)
treee8cf331791b055e933d2e9b863f93e1fcbfbaecb /custom_libs/subliminal_patch
parent74249eeb4c826f55fc3ffa966c2d3881b9372c14 (diff)
downloadbazarr-f50bcf34ac3c246d21a69dc3cc2f2eba63314c21.tar.gz
bazarr-f50bcf34ac3c246d21a69dc3cc2f2eba63314c21.zip
Fixed bad non-HI detection with embedded provider when forced subtitles availablev1.4.6-beta.2
Diffstat (limited to 'custom_libs/subliminal_patch')
-rw-r--r--custom_libs/subliminal_patch/providers/embeddedsubtitles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/embeddedsubtitles.py b/custom_libs/subliminal_patch/providers/embeddedsubtitles.py
index 2d8a492c7..943607735 100644
--- a/custom_libs/subliminal_patch/providers/embeddedsubtitles.py
+++ b/custom_libs/subliminal_patch/providers/embeddedsubtitles.py
@@ -287,7 +287,7 @@ def _check_hi_fallback(streams, languages):
logger.debug("Checking HI fallback for '%r' language", language)
streams_ = [
- stream for stream in streams if stream.language.alpha3 == language.alpha3
+ stream for stream in streams if stream.language.alpha3 == language.alpha3 and stream.language.forced == language.forced
]
if len(streams_) == 1 and streams_[0].disposition.hearing_impaired:
stream_ = streams_[0]