1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 10:11:52 +00:00

[udemy] Use custom sorting

This commit is contained in:
Sergey M․ 2016-03-26 23:42:46 +06:00
parent efcba804f6
commit 48dce58ca9

View file

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