From 48dce58ca907921f5013367a7b22235b3a3a05df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Sat, 26 Mar 2016 23:42:46 +0600 Subject: [PATCH] [udemy] Use custom sorting --- youtube_dl/extractor/udemy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index da2d542ec..100db4dd0 100644 --- a/youtube_dl/extractor/udemy.py +++ b/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, -- 2.22.2