Documentation
¶
Overview ¶
Package titlematch reports whether a release title plausibly belongs to a given movie. It guards auto-search, manual search, and RSS sync against indexers that return unrelated results for short or generic queries — for example, an indexer returning "The Firm 1993" when asked for "Big" (1988) will be rejected here even if the indexer's scoring would otherwise rank it as the best candidate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Matches ¶
Matches reports whether releaseTitle is a plausible match for (movieTitle, year). A release matches when:
- the normalized movie title appears as a word-boundary-aligned substring of the normalized release title, and
- the release year (as a 4-digit string) also appears word-aligned, when year > 0. Movies without a known year accept title-only.
The year requirement is strict: a release that does not contain the correct year is rejected. Scene and p2p releases almost always carry the year in the filename, and this strictness is what catches indexers that return unrelated movies.
Types ¶
This section is empty.