Add SDH indicator to subtitle track display
Some checks failed
Build JellyCon / build (py2) (push) Has been cancelled
Build JellyCon / build (py3) (push) Has been cancelled
CodeQL Analysis / analyze (python, 3.9) (push) Has been cancelled
Release Drafter / Update release draft (push) Has been cancelled
Test JellyCon / test (3.9) (push) Has been cancelled

Show "SDH" (Subtitles for Deaf and Hard of Hearing) label in subtitle
selection dialog when track has IsHearingImpaired flag set.
This commit is contained in:
mani
2026-01-06 01:20:33 +01:00
parent 51aaa1f603
commit a6af9d856b

View File

@@ -896,12 +896,15 @@ def audio_subs_pref(url, list_item, media_source, item_id, audio_stream_index, s
default = stream['IsDefault']
forced = stream['IsForced']
hearing_impaired = stream.get('IsHearingImpaired', False)
downloadable = stream['IsTextSubtitleStream'] and stream['IsExternal'] and stream['SupportsExternalStream']
if default:
track = "%s - Default" % track
if forced:
track = "%s - Forced" % track
if hearing_impaired:
track = "%s - SDH" % track
if downloadable:
downloadable_streams.append(index)