mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[core] Fix float comparison values in format filters (#11880)
Closes #10115 Authored by: Dioarya, bashonly Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
45732e2590
commit
f7d071e8aa
2 changed files with 31 additions and 6 deletions
|
|
@ -2121,7 +2121,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…
Add table
Add a link
Reference in a new issue