test
This commit is contained in:
parent
fc7f23cc34
commit
e2cbeee40b
@ -47,7 +47,7 @@ def main():
|
|||||||
arr_type = "sonarr"
|
arr_type = "sonarr"
|
||||||
elif "radarr_eventtype" in os.environ:
|
elif "radarr_eventtype" in os.environ:
|
||||||
arr_type = "radarr"
|
arr_type = "radarr"
|
||||||
logwrite.write("Recieved Event from %s\n" % arr_type.upper())
|
logwrite.write("Recieved %s Event from %s\n" % ("%s_eventtype" % arr_type, arr_type.upper()))
|
||||||
|
|
||||||
ENV_FILE = os.path.join(SCRIPT_DIR, "env_%s" % arr_type)
|
ENV_FILE = os.path.join(SCRIPT_DIR, "env_%s" % arr_type)
|
||||||
logwrite.write("%s\n" % ENV_FILE)
|
logwrite.write("%s\n" % ENV_FILE)
|
||||||
@ -58,7 +58,6 @@ def main():
|
|||||||
with open(ENV_FILE, 'r') as f:
|
with open(ENV_FILE, 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
env = line.rstrip()
|
env = line.rstrip()
|
||||||
logwrite.write("%s\n" % env.lower())
|
|
||||||
if env in os.environ:
|
if env in os.environ:
|
||||||
envs[env] = os.environ[env]
|
envs[env] = os.environ[env]
|
||||||
logwrite.write("%s %s" % (env, envs[env]))
|
logwrite.write("%s %s" % (env, envs[env]))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user