Browse Source

[common] _parse_smil_subtitles: accept `lang` as the subtitle language

master
Yen Chi Hsuan 9 years ago
parent
commit
03bc7237ad
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/common.py

2
youtube_dl/extractor/common.py

@ -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,

Loading…
Cancel
Save