Skip to content

Commit

Permalink
Set default comparison values used for filtering when base property i…
Browse files Browse the repository at this point in the history
…s not set
  • Loading branch information
MoojMidge committed Dec 7, 2024
1 parent 7b1f9af commit 0d4831e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/lib/youtube_plugin/youtube/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,8 +1343,12 @@ def filter_parse(item,
.replace('%2C', ',')
.replace('%7D', '}')
)
if input_1 is None:
input_1 = ''
else:
input_2 = float(input_2)
if input_1 is None:
input_1 = -1

_, negate, op_str = op_str.rpartition('!')
op = op_map.get(op_str)
Expand Down

0 comments on commit 0d4831e

Please sign in to comment.