test
This commit is contained in:
parent
5aa6ca7d13
commit
2d4a620626
@ -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
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
/usr/bin/python3 /opt/arr_to_tdarr/tdarr_inform.py
|
|
||||||
Loading…
Reference in New Issue
Block a user