From ae49b08e1907990498c32eea583ad4906f11cf62 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 29 Jun 2018 10:49:00 -0700 Subject: [PATCH] Decode script args when logging to database --- plexpy/notification_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 4ab081ae..be211ada 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -421,7 +421,7 @@ def set_notify_state(notifier, notify_action, subject='', body='', script_args=' session = session or {} - script_args = json.dumps(script_args) if script_args else None + script_args = json.dumps([s.decode(plexpy.SYS_ENCODING) for s in script_args]) if script_args else None keys = {'timestamp': int(time.time()), 'session_key': session.get('session_key', None),