From 9f888147de8f99abbbc29d0409a26ae7a55443b8 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 2 Feb 2021 01:08:53 +0530 Subject: [PATCH] [FormatSort] Allow user to prefer av01 over vp9 The default is still vp9 --- youtube_dlc/extractor/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py index 7b2f158e1..e13ba5a39 100644 --- a/youtube_dlc/extractor/common.py +++ b/youtube_dlc/extractor/common.py @@ -1367,12 +1367,12 @@ class FormatSort: regex = r' *((?P\+)?(?P[a-zA-Z0-9_]+)((?P[~:])(?P.*?))?)? *$' default = ('hidden', 'has_video', 'extractor', 'lang', 'quality', - 'res', 'fps', 'codec', 'size', 'br', 'asr', + 'res', 'fps', 'codec:vp9', 'size', 'br', 'asr', 'proto', 'ext', 'has_audio', 'source', 'format_id') settings = { 'vcodec': {'type': 'ordered', 'regex': True, - 'order': ['vp9', '(h265|he?vc?)', '(h264|avc)', 'vp8', '(mp4v|h263)', 'theora', '', None, 'none']}, + 'order': ['av0?1', 'vp9', '(h265|he?vc?)', '(h264|avc)', 'vp8', '(mp4v|h263)', 'theora', '', None, 'none']}, 'acodec': {'type': 'ordered', 'regex': True, 'order': ['opus', 'vorbis', 'aac', 'mp?4a?', 'mp3', 'e?a?c-?3', 'dts', '', None, 'none']}, 'proto': {'type': 'ordered', 'regex': True, 'field': 'protocol',