Explorar o código

[youtube] fix subtitle order

remitamine %!s(int64=9) %!d(string=hai) anos
pai
achega
2fb35d1c28
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/youtube.py

+ 1 - 1
youtube_dl/extractor/youtube.py

@@ -918,7 +918,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
             if lang in sub_lang_list:
                 continue
             sub_formats = []
-            for ext in ['vtt', 'ttml']:
+            for ext in ['ttml', 'vtt']:
                 params = compat_urllib_parse.urlencode({
                     'lang': lang,
                     'v': video_id,