Decode script args when logging to database
This commit is contained in:
@@ -421,7 +421,7 @@ def set_notify_state(notifier, notify_action, subject='', body='', script_args='
|
|||||||
|
|
||||||
session = session or {}
|
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()),
|
keys = {'timestamp': int(time.time()),
|
||||||
'session_key': session.get('session_key', None),
|
'session_key': session.get('session_key', None),
|
||||||
|
Reference in New Issue
Block a user