From 7734ec1f82a5ff3f88508d0e5ba8efb76adc0637 Mon Sep 17 00:00:00 2001 From: Parker M Date: Sat, 16 Sep 2023 22:08:55 -0500 Subject: [PATCH] Update API request --- app/messagearr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/messagearr.py b/app/messagearr.py index 9a58460..573c27e 100644 --- a/app/messagearr.py +++ b/app/messagearr.py @@ -154,6 +154,7 @@ def incoming(): return 'OK' elif str(data['data']['payload']['text']).strip() == '/status': + print("TESTING") # This returns a list of ALL movies being downloaded, but not all of them were # requested by the user, so we need to filter out the ones that were not requested response = requests.get(f'{radarr_host}/api/v3/queue/', headers=headers) @@ -197,7 +198,7 @@ def incoming(): if message == "": # For all movie IDs within the database for movie_id in movies.keys(): - response = requests.get(f'{radarr_host}/api/v3/movie/lookup/tmdb?tmdbId={movie_id}', headers=headers) + response = requests.get(f'{radarr_host}/api/v3/movie/{movie_id}', headers=headers) # This means that there is no current download, and no file has been found # MOST likely means a download just wasn't found, so alert the user if response.json()['hasFile'] == False: