fix(anilist): resolve later seasons past split-cour halves and specials

The sequel-chain walk counted every SEQUEL hop as a season, so a split
cour ("Part 2", "Cour 2", 第2クール) or a special/movie in the chain
landed one season short while reporting seasonResolved: true.

- Only TV/TV_SHORT/long-ONA entries count; specials, movies, OVAs and
  short ONAs are walked through.
- A hop whose title or synonym ends in a part/cour marker matching the
  season's first entry is a continuation, not a season. Part 1 never
  marks a back half, and a season's own marker is stripped only when it
  is Part 1 (keeps JoJo Part 5 -> Part 6 as two seasons).
- An entry whose title names the requested season (Season 3, 3rd
  Season, III, 第3期) wins over the count, with a one-season lookahead;
  bare trailing numbers are trusted on main titles only.
- A transport error mid-walk propagates instead of falling through to
  air order.
- Episodes past a split-cour season entry resolve to the part that airs
  them (episodeEntry); the AniList updater writes progress there.
- Air order matches the franchise on any main title and drops
  continuations.

Ports and corrects the unlanded design from checkpoint 27c0ea67.
This commit is contained in:
sudacode committed 2026-11-22 02:26:36 -08:00
1 parent 0ae70b4ab2
commit b7b9400aae
7 files changed
+1388 -151

No files matched your search

+5 -3
View File
@@ -26,8 +26,8 @@ On Linux, the token is stored with `gnome-libsecret` by default. If your keyring
An episode counts as watched after 85% of its length and at least 10 minutes of playback. SubMiner then:
1. Reads the title, season, and episode from the file name and folder. Install [guessit](https://github.com/guessit-io/guessit) for better parsing. A folder named `Season 2` is a strong season hint.
2. Finds the matching AniList entry. For season 2 and later, it follows the show's sequels.
3. Sets your progress to that episode and marks the entry Watching, or Completed on the final episode.
2. Finds the matching AniList entry. For season 2 and later, it follows the show's sequels. Specials, movies, and the second half of a split season ("Part 2", "Cour 2") do not count as seasons, and an entry whose title names the season ("Season 3", "III") wins.
3. Sets your progress to that episode and marks the entry Watching, or Completed on the final episode. AniList lists the second half of a split season as its own entry, so an episode past the first half goes there: episode 15 of a season split 11 + 12 is episode 4 of the second entry.
If the show is not on your list yet, SubMiner adds it as Watching, but only when the file title exactly matches an AniList title or you pinned the entry with the character dictionary's AniList override. For a looser match, add the show to Planning or Watching yourself. SubMiner never changes entries marked Completed, Paused, Dropped, or Rewatching, and it never lowers your progress.
@@ -37,7 +37,9 @@ Failed updates are saved and retried in the background, up to 8 times with growi
If a cover or title in the stats Library is wrong, open the title and use **Change AniList Entry**.
If SubMiner cannot find a later season, it skips the update rather than writing progress to season 1. Pin the right entry with the character dictionary's AniList override. See [Character dictionary](/character-dictionary).
If SubMiner cannot find a later season, it skips the update rather than writing progress to season 1. Pin the right entry with the character dictionary's AniList override. See [Character dictionary](/character-dictionary). The override is also the fix when AniList splits a season without marking the second half in any title.
Library entries matched by older versions keep their match after an update. If one points at the wrong season, use **Change AniList Entry**.
## Commands