From 0d4831e53c6a59de8d40e23315d38e8c45801da0 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Fri, 29 Nov 2024 09:03:23 +1100 Subject: [PATCH] Set default comparison values used for filtering when base property is not set --- resources/lib/youtube_plugin/youtube/helper/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/youtube_plugin/youtube/helper/utils.py b/resources/lib/youtube_plugin/youtube/helper/utils.py index 75fb800c9..bcf5b38ac 100644 --- a/resources/lib/youtube_plugin/youtube/helper/utils.py +++ b/resources/lib/youtube_plugin/youtube/helper/utils.py @@ -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)