From: Sergey M․ Date: Sat, 26 Mar 2016 17:42:46 +0000 (+0600) Subject: [udemy] Use custom sorting X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=48dce58ca907921f5013367a7b22235b3a3a05df;p=youtube-dl [udemy] Use custom sorting --- 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,