1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-08-02 02:21:04 -05:00

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

This commit is contained in:
pukkandan
2020-10-26 21:14:00 +05:30
parent 3f6eaea676
commit f96bff99cb
2 changed files with 2 additions and 2 deletions

View File

@@ -1142,7 +1142,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*$