Skip to content

A feature-rich command-line audio/video downloader

[beatenpro] Use generic format sort

Sergey M․1b53778175e4
diff --git a/youtube_dl/extractor/beatportpro.py b/youtube_dl/extractor/beatportpro.py
index c3c70fb33a..bc201572ec 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 = []