diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-04-12 05:04:47 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-04-12 05:05:15 +0530 |
commit | c3f624ef0a5d7a6ae1c5ffeb243087e9fc7d79dc (patch) | |
tree | 212e976f5a84f9a9e0f6739cc29749125edb7be2 /yt_dlp/YoutubeDL.py | |
parent | 52ecc33e221f7de7eb6fed6c22489f0c5fdd2c6d (diff) | |
download | hypervideo-pre-c3f624ef0a5d7a6ae1c5ffeb243087e9fc7d79dc.tar.lz hypervideo-pre-c3f624ef0a5d7a6ae1c5ffeb243087e9fc7d79dc.tar.xz hypervideo-pre-c3f624ef0a5d7a6ae1c5ffeb243087e9fc7d79dc.zip |
Relaxed validation for numeric format filters
Continued from f96bff99cb2cf1d112b099e5149dd2c3a6a76af2
Closes #6782
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 0d987dbb8..7b6fef204 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1932,7 +1932,7 @@ class YoutubeDL: '!=': operator.ne, } operator_rex = re.compile(r'''(?x)\s* - (?P<key>width|height|tbr|abr|vbr|asr|filesize|filesize_approx|fps)\s* + (?P<key>[\w.-]+)\s* (?P<op>%s)(?P<none_inclusive>\s*\?)?\s* (?P<value>[0-9.]+(?:[kKmMgGtTpPeEzZyY]i?[Bb]?)?)\s* ''' % '|'.join(map(re.escape, OPERATORS.keys()))) |