diff --git a/tdarr_inform.py b/tdarr_inform.py index 6ec9da4..024ef1c 100644 --- a/tdarr_inform.py +++ b/tdarr_inform.py @@ -47,7 +47,7 @@ def main(): arr_type = "sonarr" elif "radarr_eventtype" in os.environ: 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) logwrite.write("%s\n" % ENV_FILE)