fix rounding of decimal comparison values in format filters

pull/11880/head
Dioarya 3 days ago
parent d298693b1b
commit 663364f5c4
No known key found for this signature in database
GPG Key ID: C6DDD51704EAE7C0

@ -2108,7 +2108,7 @@ class YoutubeDL:
m = operator_rex.fullmatch(filter_spec)
if m:
try:
comparison_value = int(m.group('value'))
comparison_value = float(m.group('value'))
except ValueError:
comparison_value = parse_filesize(m.group('value'))
if comparison_value is None:

Loading…
Cancel
Save