Explorar o código

[vlive] Prefer locale over language for subtitles id

ping %!s(int64=9) %!d(string=hai) anos
pai
achega
49b69ad91c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/vlive.py

+ 1 - 1
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',