diff --git a/tdarr_inform.py b/tdarr_inform.py index cbbf0d9..2ce11b6 100644 --- a/tdarr_inform.py +++ b/tdarr_inform.py @@ -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__":