This commit is contained in:
deathbybandaid 2023-01-06 20:10:58 -05:00
parent 4d17b1713d
commit c0ea87777b

View File

@ -43,7 +43,7 @@ def do_tdarr_inform(dbID, arr_file_path):
}
}
response = requests.post("%s/api/v2/scan-files" % script_settings["tdarr"]["url"], json=payload, headers=headers)
loggit("Tdarr response: %s\n" % response)
loggit("Tdarr response: %s\n" % response.text)
def do_file_search(arr_file_path):
@ -56,7 +56,6 @@ def do_file_search(arr_file_path):
}
headers = {"content-type": "application/json"}
response = requests.post("%s/api/v2/search-db" % script_settings["tdarr"]["url"], json=payload, headers=headers)
loggit("Tdarr response: %s\n" % response.text)
try:
response_json = response.json()
except Exception:
@ -133,7 +132,7 @@ def main():
sys.exit(0)
loggit("Preparing payload to POST to tdarr API\n")
# do_tdarr_inform(dbID, arr_file_path)
do_tdarr_inform(dbID, arr_file_path)
if __name__ == "__main__":