From baa6474d12509bac309b8974a2f112b595a6c38d Mon Sep 17 00:00:00 2001 From: sbcrumb Date: Sun, 12 Oct 2025 11:06:02 -0400 Subject: [PATCH] debug: Force path mapper debug logging to diagnose webhook path mapping failure - Enable path_debug temporarily during webhook path mapping - Version 2.0.28 to track path mapping diagnostics - Should show Sonarr root folder matching and TV path mapping logic --- VERSION | 2 +- utils/file_utils.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 2ce4589..0047786 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.27 +2.0.28 diff --git a/utils/file_utils.py b/utils/file_utils.py index 74c95df..20e0e79 100644 --- a/utils/file_utils.py +++ b/utils/file_utils.py @@ -45,7 +45,11 @@ def find_media_path_by_imdb_and_title( if webhook_path and path_mapper: try: if hasattr(path_mapper, 'sonarr_path_to_container_path'): + # Force debug mode for path mapping + old_debug = getattr(path_mapper, 'path_debug', False) + path_mapper.path_debug = True container_path = path_mapper.sonarr_path_to_container_path(webhook_path) + path_mapper.path_debug = old_debug print(f"🔍 Sonarr path mapped: {webhook_path} → {container_path}") elif hasattr(path_mapper, 'radarr_path_to_container_path'): container_path = path_mapper.radarr_path_to_container_path(webhook_path)