This commit is contained in:
deathbybandaid 2023-01-06 12:58:12 -05:00
parent e2cbeee40b
commit 7c3686a55c

View File

@ -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 %s Event from %s\n" % ("%s_eventtype" % arr_type, arr_type.upper())) logwrite.write("Recieved %s Event from %s\n" % (eval("%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)