From ff0d666274203a3b873446b97570b5f4eb22a3ae Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 7 Jan 2023 14:30:24 -0500 Subject: [PATCH] test --- tdarr_inform.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tdarr_inform.py b/tdarr_inform.py index 1dc84f8..e1712f3 100644 --- a/tdarr_inform.py +++ b/tdarr_inform.py @@ -10,9 +10,9 @@ script_settings = { "url": "http://tdarr-server1.ipa.dbb:8265", }, "logging": { - "log_file": True, + "log_file": False, "log_file_path": os.path.join(os.path.dirname(os.path.realpath(__file__)), "debug.log"), - "output_level": 1 + "output_level": 0 } } """Dont't edit below""" @@ -30,6 +30,12 @@ expected_paths_env_variables = { "MovieFileDelete": ["radarr_moviefile_path"], "MovieDelete": ["radarr_movie_path"] }, + "whisparr": { + "Download": ["whisparr_moviefile_path", "whisparr_deletedpaths"], + "Rename": ["whisparr_moviefile_paths", "whisparr_moviefile_previouspaths"], + "MovieFileDelete": ["whisparr_moviefile_path"], + "MovieDelete": ["whisparr_movie_path"] + } } @@ -124,14 +130,16 @@ def main(): arr = {"type": None, "event_type": None, "file_paths": []} - # Determine if called from Sonarr or Radarr + # Determine if called from Sonarr, Radarr, or Whisparr # Else, exit if "sonarr_eventtype" in os.environ: arr["type"] = "sonarr" elif "radarr_eventtype" in os.environ: arr["type"] = "radarr" + elif "whisparr_eventtype" in os.environ: + arr["type"] = "whisparr" else: - loggit("Could not Detect Radarr or Sonarr", True) + loggit("Could not Detect a supported *arr", True) sys.exit(0) # What event_type was recieved