diff options
author | Ralf Haring <ralf.haring@gmail.com> | 2014-05-16 18:15:02 -0400 |
---|---|---|
committer | Ralf Haring <ralf.haring@gmail.com> | 2014-05-16 18:15:02 -0400 |
commit | 3ee4b60d564718cae7a288c4dc53bea9bb9589bb (patch) | |
tree | 3393f2bf7d96c00a50c45e31751f91b982bb0a7e /youtube_dl/extractor/mtv.py | |
parent | 76e92371acbf116f046b35c94781e3b931efd741 (diff) |
[vh1] Add new extractor (#2072)
Diffstat (limited to 'youtube_dl/extractor/mtv.py')
-rw-r--r-- | youtube_dl/extractor/mtv.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index d75241d3f..642aae811 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -80,6 +80,8 @@ 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'])) return formats def _get_video_info(self, itemdoc): |