]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[beatenpro] Use generic format sort
authorSergey M․ <dstftw@gmail.com>
Fri, 13 Mar 2015 15:51:49 +0000 (21:51 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 13 Mar 2015 15:51:49 +0000 (21:51 +0600)
youtube_dl/extractor/beatportpro.py

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