From 49a493fd32b545cece7b72b2af94d5f1b6d7765f Mon Sep 17 00:00:00 2001 From: Parker M Date: Sun, 17 Sep 2023 19:20:26 -0500 Subject: config changes --- app/db_removal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/db_removal.py') diff --git a/app/db_removal.py b/app/db_removal.py index e03ea2a..1c49dd5 100644 --- a/app/db_removal.py +++ b/app/db_removal.py @@ -2,7 +2,7 @@ from apscheduler.schedulers.background import BackgroundScheduler import sqlite3 import requests -from initialize_variables import radarr_host, headers +from initialize_variables import radarr_host_url, headers # Remove all entries from the database of movies that have already finished downloading # This helps to stop from entries building up in the database and slowing down everything @@ -17,7 +17,7 @@ def clear_database(): ''') movie_ids = cursor.fetchall() # Get all of the movie_ids that are currently downloading/queued and/or missing - response = requests.get(f'{radarr_host}/api/v3/queue/', headers=headers) + response = requests.get(f'{radarr_host_url}/api/v3/queue/', headers=headers) current_movie_ids = [] for movie in response.json()['records']: current_movie_ids.append(str(movie['movieId'])) -- cgit v1.2.3-70-g09d2