fix(anime): HxH episode thumbnails and watched-season stability on anime detail - #1427
Open
Thunderhawkk wants to merge 2 commits into
Open
Thunderhawkk wants to merge 2 commits into
Thunderhawkk wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HxH 2011 wrong episode thumbnails (src/lib/providers/anime-episode-build.ts): AniZip keys 59–78 carry correct Greed Island titles but Chimera-Ant-era identity (absolute 117–136, tvdbId 4798644+, wrong stills/airdates, S2E59–78). mergeAniZipEpisodes copied all of it unchecked, poisoning TVDB matching, proxy overlay, and season buckets (59–78 repeats). Now skips identity fields (thumbnail, airdate, absolute, tvdbId, rating, imdb coords) on absolute-number mismatch — gated to HxH 2011 IDs only (kitsu 6448, mal/anilist 11061, anidb 8550, thetvdb 252322, tt2098220, tmdb 46298). Text enrichment untouched; every other anime byte-identical.
Franchise season reset to S1 (anime-episodes.tsx, use-anime-preferred-season.ts): detail page landed on the progress season then jumped to S1/Page 1 when late data arrived. First-unwatched scan skips unelectable entries (S0 specials, standalone split siblings via the split map, natively-colliding siblings); resume lookup prefers the entry the resume belongs to; pagination resets only on explicit picks.
Why
Both bugs are upstream-data shapes the merge/selection code trusted unchecked: AniZip's corrupted HxH identity block, and merged franchise pools containing entries that can't be placed in the displayed season list (TYBW native 1:1, S0 specials) winning the preferred-season election. Fixes are placed at the election/merge points with allowlist scoping (HxH) and architecture-aware skips (split standalone entries keep their own pages), so behavior only changes where it was wrong.
Verification
Platform Impact
None
Checklist
vp checkfor the changed files.vp run typecheckafter TypeScript changes.