From 78f73845fdf023a37efd3f1b6bf52234db3d979e Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Mon, 8 Sep 2025 12:14:51 -0400 Subject: [PATCH] better radarr debug --- VERSION | 2 +- clients/radarr_client.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 42045ac..c2c0004 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.4 +0.3.5 diff --git a/clients/radarr_client.py b/clients/radarr_client.py index ba83def..79c97bb 100644 --- a/clients/radarr_client.py +++ b/clients/radarr_client.py @@ -288,7 +288,6 @@ class RadarrClient: event.get("downloadPath", "")).lower() if imported_path: - _log("DEBUG", f"Found potential import event ({event_type}) with path: {imported_path}") movie_imdb = (movie_info.get("imdbId", "") or "").lower() movie_title = (movie_info.get("title", "") or "").lower() movie_year = str(movie_info.get("year", "")) @@ -299,6 +298,7 @@ class RadarrClient: f"[{movie_imdb}]" in imported_path or movie_imdb in imported_path ): + _log("DEBUG", f"Found potential import event ({event_type}) matching IMDb {movie_imdb}: {imported_path}") date_iso = datetime.fromisoformat(event["date"].replace("Z", "+00:00")).astimezone(timezone.utc).isoformat(timespec="seconds") _log("INFO", f"✅ FOUND IMPORT: exact IMDb match at {date_iso}") earliest_real_import = date_iso @@ -317,6 +317,7 @@ class RadarrClient: # Look for both title and year if clean_title in clean_path and movie_year in clean_path: + _log("DEBUG", f"Found potential title/year match: {clean_title} ({movie_year}) in {clean_path}") date_iso = datetime.fromisoformat(event["date"].replace("Z", "+00:00")).astimezone(timezone.utc).isoformat(timespec="seconds") _log("INFO", f"✅ FOUND IMPORT: title/year match at {date_iso}") earliest_real_import = date_iso