From 34d863f3fc104f58c9fd35298d33714c2c57a9f1 Mon Sep 17 00:00:00 2001 From: Ralf Haring Date: Fri, 16 May 2014 23:49:41 -0400 Subject: [PATCH] [vh1] use standard sort (#2072) --- youtube_dl/extractor/mtv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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): -- 2.22.2