diff options
author | Parker M <contact@pkrm.dev> | 2023-09-16 22:08:55 -0500 |
---|---|---|
committer | Parker M <contact@pkrm.dev> | 2023-09-16 22:08:55 -0500 |
commit | 7734ec1f82a5ff3f88508d0e5ba8efb76adc0637 (patch) | |
tree | 5ce4e447078a7f15e0ed2af4c3c821b573cd9e7b | |
parent | 11c12676b9ace55ba8e7530691fb82daff2cbb0f (diff) |
Update API request
-rw-r--r-- | app/messagearr.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |