aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vlive.py
diff options
context:
space:
mode:
authorping <ping@users.noreply.github.com>2016-11-15 23:07:17 +0800
committerSergey M <dstftw@gmail.com>2016-11-15 22:07:17 +0700
commit49b69ad91c4a638eb8b9bdb9846819fa9274a38e (patch)
tree69cd6d8db1fac4d85bad8209cacdeec04fb97787 /youtube_dl/extractor/vlive.py
parent6b4dfa28197af9939ffa1cff90124300c46742f2 (diff)
[vlive] Prefer locale over language for subtitles id
Diffstat (limited to 'youtube_dl/extractor/vlive.py')
-rw-r--r--youtube_dl/extractor/vlive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py
index 8d671cca7..c3aa57cd6 100644
--- a/youtube_dl/extractor/vlive.py
+++ b/youtube_dl/extractor/vlive.py
@@ -116,7 +116,7 @@ class VLiveIE(InfoExtractor):
subtitles = {}
for caption in playinfo.get('captions', {}).get('list', []):
- lang = dict_get(caption, ('language', 'locale', 'country', 'label'))
+ lang = dict_get(caption, ('locale', 'language', 'country', 'label'))
if lang and caption.get('source'):
subtitles[lang] = [{
'ext': 'vtt',