[reddit] Sort formats (closes #14430)
authorSergey M․ <dstftw@gmail.com>
Fri, 6 Oct 2017 18:40:00 +0000 (01:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 6 Oct 2017 18:40:00 +0000 (01:40 +0700)
youtube_dl/extractor/reddit.py

index 01c85ee016306aa30b44c7521e736e6094b14f9c..4d44b9d74fcc9532130c2932f5afe5153e25a246 100644 (file)
@@ -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,