diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 471e967f..c2513c92 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2996,7 +2996,8 @@ class SCRIPTS(Notifier): env = {'PLEX_URL': plexpy.CONFIG.PMS_URL, 'PLEX_TOKEN': plexpy.CONFIG.PMS_TOKEN, 'TAUTULLI_URL': helpers.get_plexpy_url(hostname='localhost'), - 'TAUTULLI_APIKEY': plexpy.CONFIG.API_KEY + 'TAUTULLI_APIKEY': plexpy.CONFIG.API_KEY, + 'TAUTULLI_ENCODING': plexpy.SYS_ENCODING, } env.update(os.environ) @@ -3028,12 +3029,12 @@ class SCRIPTS(Notifier): if error: err = '\n '.join([l for l in error.splitlines()]) - logger.error(u"Tautulli Notifiers :: Script error: \n %s" % err) + logger.error("Tautulli Notifiers :: Script error: \n %s" % err) return False if output: out = '\n '.join([l for l in output.splitlines()]) - logger.debug(u"Tautulli Notifiers :: Script returned: \n %s" % out) + logger.debug("Tautulli Notifiers :: Script returned: \n %s" % out) if not self.script_killed: logger.info(u"Tautulli Notifiers :: Script notification sent.")