Compare commits

...

3 Commits

Author SHA1 Message Date
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
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
2.0.24
2.0.25
+3
View File
@@ -64,8 +64,11 @@ def find_media_path_by_imdb_and_title(
if imdb_id:
# Use proper glob pattern - escape brackets to match literal [imdb-ID]
pattern = str(media_path / f"*\\[imdb-{imdb_id}\\]*")
print(f"🔍 Searching with pattern: {pattern}")
matches = glob.glob(pattern)
print(f"🔍 Pattern matches found: {len(matches)} - {matches[:3] if matches else 'None'}")
if matches:
print(f"✅ Returning first match: {matches[0]}")
return Path(matches[0])
# Search by title as fallback