more radarr debugs

This commit is contained in:
2025-09-08 11:20:00 -04:00
parent 75bf1b470e
commit 946b024fd3
3 changed files with 16 additions and 19 deletions
+7 -1
View File
@@ -97,7 +97,13 @@ class RadarrClient:
imdb_id = imdb_id if imdb_id.startswith("tt") else f"tt{imdb_id}"
_log("DEBUG", f"Looking up movie by IMDb ID: {imdb_id}")
# Method 1: Get all movies and filter by IMDb (most reliable)
# Method 1: Direct lookup by ID
movie = self._get(f"/api/v3/movie/lookup/imdb/{imdb_id}")
if isinstance(movie, dict) and movie.get("imdbId", "").lower() == imdb_id.lower():
_log("INFO", f"Found via direct lookup: {movie.get('title')} (ID: {movie.get('id')})")
return movie
# Method 2: Get all movies and filter by IMDb (fallback)
all_movies = self._get("/api/v3/movie")
if isinstance(all_movies, list):
_log("DEBUG", f"Got {len(all_movies)} total movies, filtering by IMDb ID")