1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-03-06 14:20:19 +00:00

[extractor] Fix format sorting of channels

This commit is contained in:
pukkandan
2022-08-11 07:22:36 +05:30
parent 8420a4d063
commit 7e798d725e
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,