aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/mdr.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/mdr.py')
-rw-r--r--youtube_dl/extractor/mdr.py3
1 files changed, 2 insertions, 1 deletions
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,