diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index b750d708..9b6fb10d 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2216,6 +2216,10 @@ class SCRIPTS(Notifier): body(string, optional): Body text, action(string): 'play' """ + if not self.config['script_folder']: + logger.error(u"PlexPy Notifiers :: No script folder specified.") + return + script_args = subject or None action = kwargs.get('action', '') @@ -2225,9 +2229,6 @@ class SCRIPTS(Notifier): if not script_args: script_args = [] - if not self.config['script_folder']: - return - script = self.config.get('script', kwargs.get('script', '')) # Don't try to run the script if the action does not have one