fix rounding of decimal comparison values in format filters

This commit is contained in:
Dioarya 2024-12-23 06:14:57 +07:00
parent d298693b1b
commit 663364f5c4
No known key found for this signature in database
GPG key ID: C6DDD51704EAE7C0

View file

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