Browse Source

[vlive] Prefer locale over language for subtitles id

master
ping 8 years ago
committed by Sergey M
parent
commit
49b69ad91c
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/vlive.py

2
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',

Loading…
Cancel
Save