diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-08-20 23:18:58 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-08-20 23:18:58 +0800 |
commit | 03bc7237add1747de4c0c5d09e72e03639b4fd21 (patch) | |
tree | a39de0d4161271b2112f07886d8fcb7e01130061 /youtube_dl/extractor | |
parent | dd565ac1ad22fe48f8e358d95ea912b1768b1e5a (diff) |
[common] _parse_smil_subtitles: accept `lang` as the subtitle language
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |