mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Add TAUTULLI_ENCODING to script environment variables
This commit is contained in:
parent
2e290d0b0c
commit
fdd8ac7c7b
1 changed files with 4 additions and 3 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue