diff options
author | Ralf Haring <ralf.haring@gmail.com> | 2014-05-16 23:49:41 -0400 |
---|---|---|
committer | Ralf Haring <ralf.haring@gmail.com> | 2014-05-16 23:49:41 -0400 |
commit | 34d863f3fc104f58c9fd35298d33714c2c57a9f1 (patch) | |
tree | 2cd7619e77cfba5ef6e38477ec35f235e9f67a58 /youtube_dl | |
parent | 3ee4b60d564718cae7a288c4dc53bea9bb9589bb (diff) |
[vh1] use standard sort (#2072)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/mtv.py | 3 |
1 files changed, 1 insertions, 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): |