[vlive] Prefer locale over language for subtitles id
[youtube-dl] / 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',