From 79e540903408abac080c93124b11d1f169658472 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 6 Jan 2023 10:26:47 -0500 Subject: [PATCH] test --- tdarr_inform.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tdarr_inform.py b/tdarr_inform.py index f728bcb..f940c16 100644 --- a/tdarr_inform.py +++ b/tdarr_inform.py @@ -3,5 +3,17 @@ from sys import argv +# title = show title +# season = season # +# fileNameBase is file name without path +# dbName is your tdarr database name +# adjust arrayOrPath to path name of fileNameBase +# tdarr_url = "http://192.168.1.122:8266/api/v2/scan-files" +# payload = {"data": {"scanConfig": { "dbID": dbName, "arrayOrPath": ["/media/TVShows/" + title + "/Season " + season + "/" + fileNameBase[:-3] + '.mkv'], "mode": "scanFolderWatcher"}}} +# headers = {"content-type": "application/json"} +# response = requests.post(tdarr_url, json=payload, headers=headers) + + fp = open('/opt/testlog.log', 'a', 0) +fp.write("Testing") fp.write("%s" % argv)