Fix splitting of script arguments

This commit is contained in:
JonnyWong16 2017-03-25 11:58:37 -07:00
parent 3513f7fe2c
commit 0df1bd137d
3 changed files with 39 additions and 21 deletions

View file

@ -2380,14 +2380,11 @@ class SCRIPTS(Notifier):
logger.error(u"PlexPy Notifiers :: No script folder specified.")
return
script_args = subject or None
script_args = kwargs.get('script_args', [])
logger.debug(u"PlexPy Notifiers :: Trying to run notify script, action: %s, arguments: %s"
% (action, script_args))
if not script_args:
script_args = []
script = kwargs.get('script', self.config.get('script', ''))
# Don't try to run the script if the action does not have one