aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-08-20 23:18:58 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-08-20 23:18:58 +0800
commit03bc7237add1747de4c0c5d09e72e03639b4fd21 (patch)
treea39de0d4161271b2112f07886d8fcb7e01130061 /youtube_dl
parentdd565ac1ad22fe48f8e358d95ea912b1768b1e5a (diff)
[common] _parse_smil_subtitles: accept `lang` as the subtitle language
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py2
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,