diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-30 17:05:15 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-30 17:05:15 +0200 |
| commit | d5fc45ff907e618d884a8d2d91c1f2b45e6898d1 (patch) | |
| tree | b368ee90e99254e6d66f0a22324d9d25c5dd0a4a /packages/meshbay-node/src/meshbay_node/indexer/title_parse.py | |
| parent | b206dc86221d453c699074749f59f1d7cb3d47dc (diff) | |
| download | meshbay-d5fc45ff907e618d884a8d2d91c1f2b45e6898d1.tar.gz | |
chore: scrub copyrighted names from tests, comments and docs
Real franchise / show / release-group names had crept back into test
fixtures, code comments, a docstring and docs/mediacenter.md while fixing
the saga-match and misclassification bugs. Replace them all with invented
placeholders ("Some Saga", "A Different Show") and shape descriptions
("a franchise-origin film", "a 3-season show"). Behaviour and assertions
unchanged; 738 node tests still pass.
Record the rule in CLAUDE.md so it stops recurring.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018BMLQjqFGCize2KtNBT79v
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/indexer/title_parse.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/indexer/title_parse.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/indexer/title_parse.py b/packages/meshbay-node/src/meshbay_node/indexer/title_parse.py index 032dc58..beb0d3f 100644 --- a/packages/meshbay-node/src/meshbay_node/indexer/title_parse.py +++ b/packages/meshbay-node/src/meshbay_node/indexer/title_parse.py @@ -154,11 +154,12 @@ def sequel_variants(title: str) -> list[str]: index re-rendered as digit and as Roman numeral, plus (only when there is no "Part"/"Episode"/… keyword) the bare base. - The bare base is withheld for a keyword'd index — "Star Wars Episode - III" → "Star Wars" — because a franchise's bare name is very often a - real, *different* film (the 1977 original), and that variant matched - every episode to it (§10.1/V14). Without the keyword ("Jurassic Park 3") - the number is decoration and "Jurassic Park" is the right base to try. + The bare base is withheld for a keyword'd index — "<Saga> Chapter III" + → "<Saga>" — because a franchise's bare name is very often a real, + *different* film (the series' first entry), and that variant matched + every later entry to it (§10.1/V14). Without the keyword ("<Franchise> + 3") the number is decoration and the bare base is the right thing to + try. """ m = _TRAILING_INDEX_RE.match(title.strip()) if not m: |