[radiojavan] Sort formats
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 13:25:08 +0000 (19:25 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 13:25:08 +0000 (19:25 +0600)
youtube_dl/extractor/radiojavan.py

index c9eda9b53985ee829b92e525d76de41b78a3f28e..884c284206cb73303a6631695872ce79ecf7795e 100644 (file)
@@ -36,6 +36,7 @@ class RadioJavanIE(InfoExtractor):
             'format_id': '%sp' % height,
             'height': int(height),
         } for height, video_path in re.findall(r"RJ\.video(\d+)p\s*=\s*'/?([^']+)'", webpage)]
+        self._sort_formats(formats)
 
         title = self._og_search_title(webpage)
         thumbnail = self._og_search_thumbnail(webpage)