Skip to content

Commit

Permalink
Providers/Embedded: Fix bad non-HI detection when forced subtitles av…
Browse files Browse the repository at this point in the history
…ailable

The HI fallback logic's language check ignores the forced flag and doesn't fall back to HI when no subtitle without HI is found, but a forced one is.
  • Loading branch information
pannal authored Oct 10, 2024
1 parent 74249ee commit 0e620ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0e620ef

Please sign in to comment.