Explorar o código

[udemy] Use custom sorting

Sergey M․ %!s(int64=9) %!d(string=hai) anos
pai
achega
48dce58ca9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,