Compare commits

...

7 Commits

Author SHA1 Message Date
sbcrumb a5b2381023 resolve: Fix version conflict - use 2.0.26 from dev branch
Local Docker Build (Dev) / build-dev (pull_request) Successful in 4s
2025-10-12 10:59:50 -04:00
sbcrumb 80df0a0278 chore: Bump version to 2.0.26 for enhanced debug logging
Local Docker Build (Dev) / build-dev (push) Successful in 4s
2025-10-12 10:57:33 -04:00
sbcrumb e780b9e125 debug: Add comprehensive logging to path search and title fallback
- Show all search paths being checked and their existence status
- Debug title fallback logic showing cleaned title comparisons
- Track exactly where false matches occur (e.g., 'girls' in 'thegoldengirls')
- Identify why only some search paths are processed
2025-10-12 10:57:20 -04:00
sbcrumb 59f562c2fa Merge pull request 'sonarr-matching' (#46) from sonarr-matching into dev
Local Docker Build (Dev) / build-dev (push) Successful in 4s
Reviewed-on: #46
2025-10-12 10:53:50 -04:00
sbcrumb 716dcc05e8 chore: Bump version to 2.0.25 for sonarr-matching fixes
- Increment version for comprehensive TV IMDb detection fixes
- Includes glob pattern fix and batch validation improvements
- Ready for deployment and testing
2025-10-12 10:53:50 -04:00
sbcrumb 000d57e9fe debug: Add logging to find_media_path_by_imdb_and_title to trace search behavior
- Add debug prints to see glob patterns being used
- Track number of matches found and which paths are returned
- Help diagnose why wrong TV series paths are still being found
2025-10-12 10:53:50 -04:00
sbcrumb a3f7fbe68e Merge pull request 'fix: Correct IMDb ID pattern matching in TV show webhook processing' (#45) from sonarr-matching into dev
Local Docker Build (Dev) / build-dev (push) Successful in 4s
Reviewed-on: #45
2025-10-12 10:47:02 -04:00
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
2.0.25 2.0.26
+6
View File
@@ -56,8 +56,11 @@ def find_media_path_by_imdb_and_title(
_log("WARNING", f"Failed to process webhook path {webhook_path}: {e}") _log("WARNING", f"Failed to process webhook path {webhook_path}: {e}")
# Search by IMDb ID or title in configured paths # Search by IMDb ID or title in configured paths
print(f"🔍 Total search paths to check: {len(search_paths)} - {[str(p) for p in search_paths]}")
for media_path in search_paths: for media_path in search_paths:
print(f"🔍 Checking path: {media_path} (exists: {media_path.exists()})")
if not media_path.exists(): if not media_path.exists():
print(f"❌ Skipping non-existent path: {media_path}")
continue continue
# Search by IMDb ID first (more reliable) # Search by IMDb ID first (more reliable)
@@ -74,10 +77,13 @@ def find_media_path_by_imdb_and_title(
# Search by title as fallback # Search by title as fallback
if title: if title:
title_clean = clean_title_for_search(title) title_clean = clean_title_for_search(title)
print(f"🔍 Title fallback: searching for '{title}' → cleaned: '{title_clean}'")
for item in media_path.iterdir(): for item in media_path.iterdir():
if item.is_dir() and "[imdb-" in item.name.lower(): if item.is_dir() and "[imdb-" in item.name.lower():
item_clean = clean_title_for_search(item.name) item_clean = clean_title_for_search(item.name)
print(f"🔍 Checking directory: '{item.name}' → cleaned: '{item_clean}'")
if title_clean in item_clean: if title_clean in item_clean:
print(f"✅ Title match found: '{title_clean}' in '{item_clean}' → returning {item}")
return item return item
return None return None