[vlive] Prefer locale over language for subtitles id
authorping <ping@users.noreply.github.com>
Tue, 15 Nov 2016 15:07:17 +0000 (23:07 +0800)
committerSergey M <dstftw@gmail.com>
Tue, 15 Nov 2016 15:07:17 +0000 (22:07 +0700)
youtube_dl/extractor/vlive.py

index 8d671cca767d4592a5428f7d3ad855e952df5353..c3aa57cd6fe7d031d39ea862616e7885dff0f4d0 100644 (file)
@@ -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',