This commit is contained in:
deathbybandaid 2023-01-06 13:02:07 -05:00
parent 1faad2ac3b
commit 1cb49cae5a

View File

@ -49,8 +49,8 @@ def main():
arr_type = "sonarr"
elif "radarr_eventtype" in os.environ:
arr_type = "radarr"
envs["%s_eventtype"] = os.environ["%s_eventtype"]
logwrite.write("Recieved %s Event from %s\n" % (envs["%s_eventtype"], arr_type.upper()))
envs["%s_eventtype" % arr_type] = os.environ["%s_eventtype" % arr_type]
logwrite.write("Recieved %s Event from %s\n" % (envs["%s_eventtype" % arr_type], arr_type.upper()))
ENV_FILE = os.path.join(SCRIPT_DIR, "env_%s" % arr_type)
logwrite.write("%s\n" % ENV_FILE)