Fix bub in version label building
This commit is contained in:
parent
b057bab44b
commit
381cbd7a36
|
@ -51,17 +51,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