From: Sergey M․ Date: Fri, 13 Mar 2015 15:51:49 +0000 (+0600) Subject: [beatenpro] Use generic format sort X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1b53778175e43e2bf2cb71885a760d96727ee837;p=youtube-dl [beatenpro] Use generic format sort --- diff --git a/youtube_dl/extractor/beatportpro.py b/youtube_dl/extractor/beatportpro.py index c3c70fb33..bc201572e 100644 --- a/youtube_dl/extractor/beatportpro.py +++ b/youtube_dl/extractor/beatportpro.py @@ -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 = []