Explorar o código

[iprima] Use centralized format sorting

Philipp Hagemeister %!s(int64=12) %!d(string=hai) anos
pai
achega
91264ce572
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      youtube_dl/extractor/iprima.py

+ 4 - 2
youtube_dl/extractor/iprima.py

@@ -72,7 +72,9 @@ class IPrimaIE(InfoExtractor):
                 'play_path': 'mp4:'+filename.replace('"', '')[:-4],
                 'rtmp_live': True,
                 'ext': 'flv',
-                })
+            })
+
+        self._sort_formats(formats)
 
         return {
             'id': real_id,
@@ -80,4 +82,4 @@ class IPrimaIE(InfoExtractor):
             'thumbnail': self._og_search_thumbnail(webpage),
             'formats': formats,
             'description': self._og_search_description(webpage),
-        }
+        }