mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[vh1] use standard sort (#2072)
This commit is contained in:
parent
3ee4b60d56
commit
34d863f3fc
1 changed files with 1 additions and 2 deletions
|
@ -80,8 +80,7 @@ def _extract_video_formats(self, mdoc, mtvn_id):
|
|||
})
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue