Sfoglia il codice sorgente

[reddit] Sort formats (closes #14430)

Sergey M․ 8 anni fa
parent
commit
665f42d8c1
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      youtube_dl/extractor/reddit.py

+ 2 - 0
youtube_dl/extractor/reddit.py

@@ -35,6 +35,8 @@ class RedditIE(InfoExtractor):
             'https://v.redd.it/%s/DASHPlaylist.mpd' % video_id, video_id,
             mpd_id='dash', fatal=False))
 
+        self._sort_formats(formats)
+
         return {
             'id': video_id,
             'title': video_id,