From: Philipp Hagemeister Date: Tue, 24 Dec 2013 22:34:11 +0000 (+0100) Subject: [mdr] Use centralized format selection X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b874fe2da8defdd5fd945e87d746f52ef52a40f2;p=youtube-dl [mdr] Use centralized format selection --- diff --git a/youtube_dl/extractor/mdr.py b/youtube_dl/extractor/mdr.py index 08ce0647f..7aa0080d7 100644 --- a/youtube_dl/extractor/mdr.py +++ b/youtube_dl/extractor/mdr.py @@ -52,10 +52,11 @@ class MDRIE(InfoExtractor): 'format_id': u'%s-%d' % (media_type, vbr), }) formats.append(format) - formats.sort(key=lambda f: (f.get('vbr'), f['abr'])) if not formats: raise ExtractorError(u'Could not find any valid formats') + self._sort_formats(formats) + return { 'id': video_id, 'title': title,