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

This commit is contained in:
pukkandan 2020-10-17 16:11:09 +05:30
parent b55715934b
commit 5ab1d24b0d
1 changed files with 1 additions and 1 deletions

View File

@ -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*$