Compare commits
No commits in common. "ff0d666274203a3b873446b97570b5f4eb22a3ae" and "b17371a644b5c1ecb77254016655e34f5311baa2" have entirely different histories.
ff0d666274
...
b17371a644
@ -10,9 +10,9 @@ script_settings = {
|
|||||||
"url": "http://tdarr-server1.ipa.dbb:8265",
|
"url": "http://tdarr-server1.ipa.dbb:8265",
|
||||||
},
|
},
|
||||||
"logging": {
|
"logging": {
|
||||||
"log_file": False,
|
"log_file": True,
|
||||||
"log_file_path": os.path.join(os.path.dirname(os.path.realpath(__file__)), "debug.log"),
|
"log_file_path": os.path.join(os.path.dirname(os.path.realpath(__file__)), "debug.log"),
|
||||||
"output_level": 0
|
"output_level": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""Dont't edit below"""
|
"""Dont't edit below"""
|
||||||
@ -27,15 +27,8 @@ expected_paths_env_variables = {
|
|||||||
"radarr": {
|
"radarr": {
|
||||||
"Download": ["radarr_moviefile_path", "radarr_deletedpaths"],
|
"Download": ["radarr_moviefile_path", "radarr_deletedpaths"],
|
||||||
"Rename": ["radarr_moviefile_paths", "radarr_moviefile_previouspaths"],
|
"Rename": ["radarr_moviefile_paths", "radarr_moviefile_previouspaths"],
|
||||||
"MovieFileDelete": ["radarr_moviefile_path"],
|
|
||||||
"MovieDelete": ["radarr_movie_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"]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -130,16 +123,17 @@ def main():
|
|||||||
|
|
||||||
arr = {"type": None, "event_type": None, "file_paths": []}
|
arr = {"type": None, "event_type": None, "file_paths": []}
|
||||||
|
|
||||||
# Determine if called from Sonarr, Radarr, or Whisparr
|
# Determine if called from Sonarr or Radarr
|
||||||
# Else, exit
|
# Else, exit
|
||||||
if "sonarr_eventtype" in os.environ:
|
if "sonarr_eventtype" in os.environ:
|
||||||
arr["type"] = "sonarr"
|
arr["type"] = "sonarr"
|
||||||
elif "radarr_eventtype" in os.environ:
|
elif "radarr_eventtype" in os.environ:
|
||||||
arr["type"] = "radarr"
|
arr["type"] = "radarr"
|
||||||
elif "whisparr_eventtype" in os.environ:
|
for x in os.environ:
|
||||||
arr["type"] = "whisparr"
|
if x.startswith("radarr"):
|
||||||
|
loggit("%s: %s" % (x, os.environ[x]))
|
||||||
else:
|
else:
|
||||||
loggit("Could not Detect a supported *arr", True)
|
loggit("Could not Detect Radarr or Sonarr", True)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# What event_type was recieved
|
# What event_type was recieved
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user