aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-04-12 05:04:47 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-04-12 05:05:15 +0530
commitc3f624ef0a5d7a6ae1c5ffeb243087e9fc7d79dc (patch)
tree212e976f5a84f9a9e0f6739cc29749125edb7be2 /yt_dlp/YoutubeDL.py
parent52ecc33e221f7de7eb6fed6c22489f0c5fdd2c6d (diff)
downloadhypervideo-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.py2
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())))