[extractor] Fix format sorting of channels

This commit is contained in:
pukkandan 2022-08-11 07:22:36 +05:30
parent 8420a4d063
commit 7e798d725e
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
3 changed files with 6 additions and 5 deletions

View file

@ -3588,7 +3588,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
formats.extend(self._extract_storyboard(player_responses, duration))
# source_preference is lower for throttled/potentially damaged formats
self._sort_formats(formats, ('quality', 'res', 'fps', 'hdr:12', 'channels', 'source', 'codec:vp9.2', 'lang', 'proto'))
self._sort_formats(formats, (
'quality', 'res', 'fps', 'hdr:12', 'source', 'vcodec:vp9.2', 'channels', 'acodec', 'lang', 'proto'))
info = {
'id': video_id,