Fix anime streaming reliability across One Piece, Dragon Ball, packs - #6
Closed
aneeshtigga wants to merge 1 commit into
Closed
Fix anime streaming reliability across One Piece, Dragon Ball, packs#6aneeshtigga wants to merge 1 commit into
aneeshtigga wants to merge 1 commit into
Conversation
Root cause: absolute episode resolution failed for ongoing/old anime →
queries degraded to SxxEyy-only (anime releases never use) → zero streams.
Changes:
- anilist.js: 3s fetch timeouts, TTL'd positive/negative caches (60s
transient, 24h positive), animeSeasonInfo({episodes,status,format})
- cinemeta.js: seasonMax/Min/hasSpecials/seasonsContiguous signals,
5 absolute query variants (bare, pad2, dash, pad3, E-prefix)
- addon.js: trustOrdinal() with 3 rules (single-season, exact-total,
ongoing-contiguous-prefix), certain flag, label uncertain matches ≈,
real sub-budgets (3.5s AniList/TVDB, 8s packs), pack gate to isAnime
- util.js: matchesAbsolute strips S23E09/S23/v2/1st, packCovers strips
E01-E131 ranges
- jackett-setup.js: anime indexers (animetosho/tokyotoshokan/anidex),
ensureAnimeIndexers() reconciles into existing setups, EACCES diagnostic
- jackett.js: static FALLBACK_FANOUT_IDS before slow 'all' aggregate
- index.js: warm Fribb map on startup
- test/: 15 tests guard trustOrdinal + matchesAbsolute/packCovers
Coverage: old/pack-only episodes, ongoing multi-season anime (labeled),
completed anime, weird naming (dash/E-prefix), cross-OS Jackett setup.
Speed: 3.5s caps (not 25s), static fan-out (not slow aggregate),
self-healing 60s transient cache.
Safety: uncertain matches labeled ≈, tests guard off-by-one traps,
pack gate requires trustworthy absolute.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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
≈)Root Cause
Absolute episode resolution failed → queries degraded to
SxxEyy-only → anime releases (named by absolute number) didn't match → zero streams.Technical Changes
animeSeasonInfo()seasonMax/hasSpecials/seasonsContiguous), 5 absolute query variantstrustOrdinal()with 3 safety rules, uncertain labeling (≈), real sub-budgets, pack gatematchesAbsolutestripsS23E09/v2/1st,packCovershandlesE01-E131rangesallaggregate)Test Plan
npm test)≈)Verification
🤖 Generated with Claude Code