This commit is contained in:
deathbybandaid 2023-01-06 12:25:46 -05:00
parent 5aa6ca7d13
commit 2d4a620626
2 changed files with 6 additions and 3 deletions

View File

@ -39,14 +39,19 @@ from sys import argv
def main(): def main():
SCRIPT_PATH = os.path.realpath(__file__) SCRIPT_PATH = os.path.realpath(__file__)
SCRIPT_DIR = os.path.dirname(SCRIPT_PATH) SCRIPT_DIR = os.path.dirname(SCRIPT_PATH)
log_file = os.path.join(SCRIPT_DIR, "testlog.log") log_file = os.path.join(SCRIPT_DIR, "testlog.log")
# ENV_FILE = f"{SCRIPT_DIR}\\ARR_ENV.txt"
logwrite = open(log_file, 'a') logwrite = open(log_file, 'a')
if "sonarr_eventtype" in os.environ:
logwrite.write("Recieved Event from Sonarr")
logwrite.write("argv %s\n" % argv) logwrite.write("argv %s\n" % argv)
logwrite.close() logwrite.close()
# ENV_FILE = f"{SCRIPT_DIR}\\ARR_ENV.txt"
# envs = {} # envs = {}
# Checking all potentiall environment variables # Checking all potentiall environment variables

View File

@ -1,2 +0,0 @@
#!/bin/bash
/usr/bin/python3 /opt/arr_to_tdarr/tdarr_inform.py