浏览代码

[appletrailers] Use centralized format selection

Philipp Hagemeister 11 年之前
父节点
当前提交
7b8af56340
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/appletrailers.py

+ 2 - 1
youtube_dl/extractor/appletrailers.py

@@ -110,7 +110,8 @@ class AppleTrailersIE(InfoExtractor):
                     'width': format['width'],
                     'height': int(format['height']),
                 })
-            formats = sorted(formats, key=lambda f: (f['height'], f['width']))
+
+            self._sort_formats(formats)
 
             playlist.append({
                 '_type': 'video',