Skip to content

Commit

Permalink
Relaxed validation for numeric format filters
Browse files Browse the repository at this point in the history
Continued from f96bff9

Closes yt-dlp#6782
  • Loading branch information
pukkandan committed Apr 11, 2023
1 parent 52ecc33 commit c3f624e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ def _build_format_filter(self, filter_spec):
'!=': 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())))
Expand Down

0 comments on commit c3f624e

Please sign in to comment.