diff options
author | pukkandan <pukkandan@gmail.com> | 2020-10-26 21:14:00 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2020-12-13 20:05:03 +0530 |
commit | f96bff99cb2cf1d112b099e5149dd2c3a6a76af2 (patch) | |
tree | 9263dd0ab6c0b4f0fbfb7835d4e0cef8165c5910 /youtube_dlc/YoutubeDL.py | |
parent | 3f6eaea676a2e4f4e3abed35ec9ffcf220e6298e (diff) | |
download | hypervideo-pre-f96bff99cb2cf1d112b099e5149dd2c3a6a76af2.tar.lz hypervideo-pre-f96bff99cb2cf1d112b099e5149dd2c3a6a76af2.tar.xz hypervideo-pre-f96bff99cb2cf1d112b099e5149dd2c3a6a76af2.zip |
Relaxed validation for format filters so that any arbitrary field can be used
Diffstat (limited to 'youtube_dlc/YoutubeDL.py')
-rw-r--r-- | youtube_dlc/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 41a1ec724..ee6d74910 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -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*$ |