瀏覽代碼

[iprima] Use centralized format sorting

Philipp Hagemeister 11 年之前
父節點
當前提交
91264ce572
共有 1 個文件被更改,包括 4 次插入2 次删除
  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),
-        }
+        }