浏览代码

[udemy] Use custom sorting

Sergey M․ 9 年之前
父节点
当前提交
48dce58ca9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/udemy.py

+ 1 - 1
youtube_dl/extractor/udemy.py

@@ -279,7 +279,7 @@ class UdemyIE(InfoExtractor):
                         'height': height,
                     })
 
-        self._sort_formats(formats)
+        self._sort_formats(formats, field_preference=('height', 'width', 'tbr', 'format_id'))
 
         return {
             'id': video_id,