1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-21 00:22:52 +08:00

[vh1] use standard sort (#2072)

This commit is contained in:
Ralf Haring 2014-05-16 23:49:41 -04:00
parent 3ee4b60d56
commit 34d863f3fc

View File

@ -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):