1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[common] _parse_smil_subtitles: accept lang as the subtitle language

This commit is contained in:
Yen Chi Hsuan 2015-08-20 23:18:58 +08:00
parent dd565ac1ad
commit 03bc7237ad

View file

@ -1151,7 +1151,7 @@ class InfoExtractor(object):
} }
if type_ in SUBTITLES_TYPES: if type_ in SUBTITLES_TYPES:
ext = SUBTITLES_TYPES[type_] ext = SUBTITLES_TYPES[type_]
lang = textstream.get('systemLanguage') or textstream.get('systemLanguageName') or subtitles_lang lang = textstream.get('systemLanguage') or textstream.get('systemLanguageName') or textstream.get('lang') or subtitles_lang
subtitles.setdefault(lang, []).append({ subtitles.setdefault(lang, []).append({
'url': src, 'url': src,
'ext': ext, 'ext': ext,