Fix bub in version label building
This commit is contained in:
parent
3ec2961a85
commit
4eac1fa86d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue