From 736a968b63eb208f2573ce8fb8ada11a24c6d5ce Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 6 Jan 2023 10:35:00 -0500 Subject: [PATCH] test --- tdarr_inform.py | 15 ++++++++------- tdarr_inform.sh | 2 ++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 tdarr_inform.sh diff --git a/tdarr_inform.py b/tdarr_inform.py index 5165e7d..85e19a4 100644 --- a/tdarr_inform.py +++ b/tdarr_inform.py @@ -1,7 +1,7 @@ -#!/usr/bin/python +#!/usr/bin/python3 -import os -# from sys import argv +# import os +from sys import argv # title = show title @@ -15,11 +15,11 @@ import os # response = requests.post(tdarr_url, json=payload, headers=headers) -# fp = open('/opt/testlog.log', 'a', 0) -# fp.write("Testing") -# fp.write("%s" % argv) - +fp = open('/opt/testlog.log', 'a', 0) +fp.write("Testing") +fp.write("%s" % argv) +""" def main(): SCRIPT_PATH = os.path.realpath(__file__) SCRIPT_DIR = os.path.dirname(SCRIPT_PATH) @@ -49,3 +49,4 @@ def main(): if __name__ == "__main__": main() +""" diff --git a/tdarr_inform.sh b/tdarr_inform.sh new file mode 100644 index 0000000..d9a8d14 --- /dev/null +++ b/tdarr_inform.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/bin/python3 /opt/arr_to_tdarr/tdarr_inform.py