Browse Source

[radiojavan] Sort formats

Sergey M․ 10 years ago
parent
commit
8fb2e5a4f5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      youtube_dl/extractor/radiojavan.py

+ 1 - 0
youtube_dl/extractor/radiojavan.py

@@ -36,6 +36,7 @@ class RadioJavanIE(InfoExtractor):
             'format_id': '%sp' % height,
             'format_id': '%sp' % height,
             'height': int(height),
             'height': int(height),
         } for height, video_path in re.findall(r"RJ\.video(\d+)p\s*=\s*'/?([^']+)'", webpage)]
         } 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)
         title = self._og_search_title(webpage)
         thumbnail = self._og_search_thumbnail(webpage)
         thumbnail = self._og_search_thumbnail(webpage)