From 663364f5c491672d3af02757c06d942a07376087 Mon Sep 17 00:00:00 2001 From: Dioarya Date: Mon, 23 Dec 2024 06:14:57 +0700 Subject: [PATCH] fix rounding of decimal comparison values in format filters --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 65b72e026..9836c4940 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -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: