From: Ralf Haring Date: Sat, 17 May 2014 03:49:41 +0000 (-0400) Subject: [vh1] use standard sort (#2072) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=34d863f3fc104f58c9fd35298d33714c2c57a9f1;p=youtube-dl [vh1] use standard sort (#2072) --- diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index 642aae811..e5ca41b40 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -80,8 +80,7 @@ class MTVServicesInfoExtractor(InfoExtractor): }) except (KeyError, TypeError): raise ExtractorError('Invalid rendition field.') - # worst format is expected to be first and best one last - formats.sort(key=lambda x: int(x['format_id'])) + self._sort_formats(formats) return formats def _get_video_info(self, itemdoc):