From: Yen Chi Hsuan Date: Thu, 20 Aug 2015 15:18:58 +0000 (+0800) Subject: [common] _parse_smil_subtitles: accept `lang` as the subtitle language X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=03bc7237add1747de4c0c5d09e72e03639b4fd21;p=youtube-dl [common] _parse_smil_subtitles: accept `lang` as the subtitle language --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index ce2030d28..999afc110 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1151,7 +1151,7 @@ class InfoExtractor(object): } if type_ in SUBTITLES_TYPES: 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({ 'url': src, 'ext': ext,