Fix bub in version label building

This commit is contained in:
Barbagus 2022-12-29 10:57:15 +01:00
parent 3ec2961a85
commit 4eac1fa86d
1 changed files with 3 additions and 3 deletions

View File

@ -35,17 +35,17 @@ def _build_rendition_label(rendition):
label = ""
if rendition.audio.is_original:
label += "original "
elif not rendition.audio.is_accessible:
elif not rendition.audio.provides_accessibility:
label += "dubbed "
label += _lookup_language_name(rendition.audio.lang)
if rendition.audio.is_accessible:
if rendition.audio.provides_accessibility:
label += " audio description"
if rendition.subtitles:
if rendition.subtitles.is_accessible:
if rendition.subtitles.provides_accessibility:
if rendition.subtitles.lang != rendition.audio.lang:
label += f" with {_lookup_language_name(rendition.subtitles.lang)} text description"
else: