diff options
author | pukkandan <pukkandan@gmail.com> | 2021-02-18 19:54:30 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-02-18 23:52:31 +0530 |
commit | 155d2b48c51a4baec3d7bef78df68df91f2e1347 (patch) | |
tree | f7b7d7e684cd7a15a3ace060cdab8ced9882debc /youtube_dlc/extractor/common.py | |
parent | 54f37eeabda3b38098231e8bd7feccfce27380c0 (diff) | |
download | hypervideo-pre-155d2b48c51a4baec3d7bef78df68df91f2e1347.tar.lz hypervideo-pre-155d2b48c51a4baec3d7bef78df68df91f2e1347.tar.xz hypervideo-pre-155d2b48c51a4baec3d7bef78df68df91f2e1347.zip |
[formatsort] Prefer vp9.2 over other vp9 codecs
vp9.2 may contain HDR while vp9.0 doesn't
Diffstat (limited to 'youtube_dlc/extractor/common.py')
-rw-r--r-- | youtube_dlc/extractor/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/extractor/common.py b/youtube_dlc/extractor/common.py index 371c34929..072ae5b81 100644 --- a/youtube_dlc/extractor/common.py +++ b/youtube_dlc/extractor/common.py @@ -1367,12 +1367,12 @@ class InfoExtractor(object): regex = r' *((?P<reverse>\+)?(?P<field>[a-zA-Z0-9_]+)((?P<seperator>[~:])(?P<limit>.*?))?)? *$' default = ('hidden', 'hasvid', 'ie_pref', 'lang', 'quality', - 'res', 'fps', 'codec:vp9', 'size', 'br', 'asr', + 'res', 'fps', 'codec:vp9.2', 'size', 'br', 'asr', 'proto', 'ext', 'has_audio', 'source', 'format_id') # These must not be aliases settings = { 'vcodec': {'type': 'ordered', 'regex': True, - 'order': ['av0?1', 'vp9', '(h265|he?vc?)', '(h264|avc)', 'vp8', '(mp4v|h263)', 'theora', '', None, 'none']}, + 'order': ['av0?1', 'vp0?9.2', 'vp0?9', '[hx]265|he?vc?', '[hx]264|avc', 'vp0?8', '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', |