Explorar o código

[beatenpro] Use generic format sort

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
1b53778175
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/beatportpro.py

+ 1 - 1
youtube_dl/extractor/beatportpro.py

@@ -77,7 +77,7 @@ class BeatportProIE(InfoExtractor):
                 fmt['abr'] = 96
                 fmt['abr'] = 96
                 fmt['asr'] = 44100
                 fmt['asr'] = 44100
             formats += [fmt]
             formats += [fmt]
-        formats.sort(key=lambda f: f['preference'])
+        self._sort_formats(formats)
 
 
         # Get album art as thumbnails
         # Get album art as thumbnails
         imgs = []
         imgs = []