Fixed bad non-HI detection with embedded provider when forced subtitles available

pull/2717/head v1.4.6-beta.2
pannal 1 month ago committed by GitHub
parent 74249eeb4c
commit f50bcf34ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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]

Loading…
Cancel
Save