Franchise links: the Criterion and New Year collections aren't franchises

The box's fuller collections read found TMDB franchise sets ('Godzilla
Collection') beside curated ones that share the word (The Criterion
Collection, The New Year Collection); those link nothing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-05 15:19:27 +00:00
co-authored by Claude Opus 5.5
parent bbe06b6391
commit b17274c925
@@ -160,7 +160,7 @@ internal class FranchiseLinks(private val channelsOf: Map<String, Set<Int>>, pri
* Which of the library's collections are franchises: only TMDB-style "... Collection" sets. The library's other collections are
* curated lists (Trending, IMDB Top 250, Netflix, BBC - Shows...) and say nothing about franchises, so they never link titles.
*/
internal val FranchiseCollection = Regex("\\bCollection$", RegexOption.IGNORE_CASE)
internal val FranchiseCollection = Regex("^(?!.*\\b(Criterion|New Year)\\b).*\\bCollection$", RegexOption.IGNORE_CASE)
/** The library's broadcaster lists that verify British origin. */
internal val BritishLists = Regex("^(BBC\\b|Channel 4\\b|ITV\\b|Sky Originals|Britbox Originals)", RegexOption.IGNORE_CASE)