Relaxed validation for format filters so that any arbitary field can be used

archive/recovered-github-prs
pukkandan 4 years ago
parent b55715934b
commit 5ab1d24b0d

@ -1073,7 +1073,7 @@ class YoutubeDL(object):
'*=': lambda attr, value: value in attr,
}
str_operator_rex = re.compile(r'''(?x)
\s*(?P<key>ext|acodec|vcodec|container|protocol|format_id)
\s*(?P<key>[a-zA-Z0-9._-]+)
\s*(?P<negation>!\s*)?(?P<op>%s)(?P<none_inclusive>\s*\?)?
\s*(?P<value>[a-zA-Z0-9._-]+)
\s*$

Loading…
Cancel
Save