diff options
| author | Fuwn <[email protected]> | 2026-05-26 14:15:12 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-26 14:15:12 +0000 |
| commit | 0192a7f143fbc9eca913bc77a2cf0ce95e3e7a3a (patch) | |
| tree | 907291985be19ed8cfc52485ff18514afe5675c8 /src/lib/Media/Anime/Airing/classify.test.ts | |
| parent | fix(match): normalize "S2"-style season suffix in title preprocessing (diff) | |
| download | due.moe-main.tar.xz due.moe-main.zip | |
The shift was capped at 36h, which caught daily-cadence drift but not
weekly shows where AniList's nextAiringEpisode jumps a full week ahead
once an episode airs. Extends to 8 days so weekly schedules trigger it.
Also shifts nativeEpisode alongside episode so classify treats the
subtitled release as authoritative for aired-count when prefer-native
is off; previously the original AniList count survived and kept shows
in Due even though display correctly said the next sub release was
still upcoming.
Diffstat (limited to 'src/lib/Media/Anime/Airing/classify.test.ts')
| -rw-r--r-- | src/lib/Media/Anime/Airing/classify.test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Media/Anime/Airing/classify.test.ts b/src/lib/Media/Anime/Airing/classify.test.ts index b05be83b..2b40d7df 100644 --- a/src/lib/Media/Anime/Airing/classify.test.ts +++ b/src/lib/Media/Anime/Airing/classify.test.ts @@ -146,6 +146,8 @@ describe("native countdown toggle parity", () => { airingAt: nativeAiringAt, }; + if (media.mediaListEntry) media.mediaListEntry.progress = 5; + settings.setKey("displayNativeCountdown", true); const nativeOnly = injectAiringTime(media, subsPlease); @@ -242,7 +244,7 @@ describe("injectAiringTime cache safety", () => { ...media, mediaListEntry: { ...(media.mediaListEntry || {}), - progress: 8, + progress: 7, }, } as Media; const cachedCaughtUp = injectAiringTime(caughtUp, subsPlease); |