1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 10:11:52 +00:00

[vlive] Prefer locale over language for subtitles id

This commit is contained in:
ping 2016-11-15 23:07:17 +08:00 committed by Sergey M
parent 6b4dfa2819
commit 49b69ad91c

View file

@ -116,7 +116,7 @@ class VLiveIE(InfoExtractor):
subtitles = {} subtitles = {}
for caption in playinfo.get('captions', {}).get('list', []): 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'): if lang and caption.get('source'):
subtitles[lang] = [{ subtitles[lang] = [{
'ext': 'vtt', 'ext': 'vtt',