projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4dfa2
)
[vlive] Prefer locale over language for subtitles id
author
ping
<ping@users.noreply.github.com>
Tue, 15 Nov 2016 15:07:17 +0000
(23:07 +0800)
committer
Sergey M
<dstftw@gmail.com>
Tue, 15 Nov 2016 15:07:17 +0000
(22:07 +0700)
youtube_dl/extractor/vlive.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vlive.py
b/youtube_dl/extractor/vlive.py
index 8d671cca767d4592a5428f7d3ad855e952df5353..c3aa57cd6fe7d031d39ea862616e7885dff0f4d0 100644
(file)
--- 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, ('l
anguage', 'local
e', 'country', 'label'))
+ lang = dict_get(caption, ('l
ocale', 'languag
e', 'country', 'label'))
if lang and caption.get('source'):
subtitles[lang] = [{
'ext': 'vtt',