diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-12-24 23:34:11 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-12-24 23:34:11 +0100 |
commit | b874fe2da8defdd5fd945e87d746f52ef52a40f2 (patch) | |
tree | 6254698c69d8bb03c4f844b09c901f388b1f39cf /youtube_dl/extractor/mdr.py | |
parent | c7deaa4c745382634ac5a910cc68efa4211f7456 (diff) |
[mdr] Use centralized format selection
Diffstat (limited to 'youtube_dl/extractor/mdr.py')
-rw-r--r-- | youtube_dl/extractor/mdr.py | 3 |
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, |