Refine title search to whole-word matching and bump 0.1.49

This commit is contained in:
2026-02-01 23:14:10 +01:00
parent 28da41123f
commit 1e3c6ffdf6
4 changed files with 318 additions and 26 deletions

View File

@@ -106,10 +106,8 @@ def _matches_query(query: str, *, title: str, description: str) -> bool:
normalized_query = _normalize_search_text(query)
if not normalized_query:
return False
haystack = _normalize_search_text(title)
if not haystack:
return False
return normalized_query in haystack
haystack = f" {_normalize_search_text(title)} "
return f" {normalized_query} " in haystack
def _strip_der_film_suffix(title: str) -> str: