Explorar o código

[radiojavan] Sort formats

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
8fb2e5a4f5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,
             '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)