diff --git a/data/interfaces/default/notifier_config.html b/data/interfaces/default/notifier_config.html index 03dde272..4f23052f 100644 --- a/data/interfaces/default/notifier_config.html +++ b/data/interfaces/default/notifier_config.html @@ -192,6 +192,9 @@ Add custom conditions to only allow certain notifications. By default, all notifications will be sent if there are no conditions. Click here for a description of all the parameters.

+

+ A tilde (~) can be entered as a value to indicate a empty string. +

diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 97c57993..f8fcd38a 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -295,7 +295,7 @@ def notify_custom_conditions(notifier_id=None, parameters=None): # Cast the condition values to the correct type try: if parameter_type == 'str': - values = [str(v).lower() for v in values] + values = ['' if v == '~' else str(v).lower() for v in values] elif parameter_type == 'int': values = [helpers.cast_to_int(v) for v in values]