[youtube] fix subtitle order
authorremitamine <remitamine@gmail.com>
Thu, 4 Feb 2016 07:39:01 +0000 (08:39 +0100)
committerremitamine <remitamine@gmail.com>
Thu, 4 Feb 2016 07:39:01 +0000 (08:39 +0100)
youtube_dl/extractor/youtube.py

index 1fef4cfd46b5d0e36d16355156d85039140e302b..e9ed77e42a580076021408b2cbe7df6fcf318243 100644 (file)
@@ -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,