Skip to content

Commit

Permalink
[AudioSelection] set "Not defined" if language name emtpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima73 committed Dec 26, 2022
1 parent 4e56e7c commit 114389c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/python/Screens/AudioSelection.py
Expand Up @@ -133,7 +133,9 @@ def fillList(self, arg=None):
for lang in languages:
if cnt:
language += ' / '
if lang in LanguageCodes:
if lang == "":
language += _("Not defined")
elif lang in LanguageCodes:
language += _(LanguageCodes[lang][0])
elif lang in originalAudioTracks:
language += "%s (%s)" % (_("Original audio"), lang)
Expand Down

0 comments on commit 114389c

Please sign in to comment.