Skip to content

Commit

Permalink
0.5.73 - fixed magnet assign (somehow reverted to original file durin…
Browse files Browse the repository at this point in the history
…g previous push
  • Loading branch information
godver3 committed Feb 5, 2025
1 parent 05241f2 commit 3099795
Show file tree
Hide file tree
Showing 4 changed files with 541 additions and 389 deletions.
9 changes: 8 additions & 1 deletion queues/media_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,14 @@ def match_episode(self, parsed: Dict[str, Any], item: Dict[str, Any]) -> bool:
]):
return False

# Get parsed title and queue title
# First try matching using our search patterns
search_patterns = item.get('search_patterns', [])
if search_patterns:
for pattern in search_patterns:
if pattern.lower() in original_title.lower():
return True

# If no search patterns or no match, fall back to traditional matching
parsed_title = self._normalize_title(parsed.get('title', ''))
queue_title = self._normalize_title(item.get('series_title', '') or item.get('title', ''))
if not parsed_title or not queue_title:
Expand Down
Loading

0 comments on commit 3099795

Please sign in to comment.