fix: Correct IMDb ID pattern matching in TV show webhook processing #45
+2
-1
@@ -62,7 +62,8 @@ def find_media_path_by_imdb_and_title(
|
||||
|
||||
# Search by IMDb ID first (more reliable)
|
||||
if imdb_id:
|
||||
pattern = str(media_path / f"*[imdb-{imdb_id}]*")
|
||||
# Use proper glob pattern - escape brackets to match literal [imdb-ID]
|
||||
pattern = str(media_path / f"*\\[imdb-{imdb_id}\\]*")
|
||||
matches = glob.glob(pattern)
|
||||
if matches:
|
||||
return Path(matches[0])
|
||||
|
||||
Reference in New Issue
Block a user