aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Media/Anime/Airing/classify.test.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-26 14:15:12 +0000
committerFuwn <[email protected]>2026-05-26 14:15:12 +0000
commit0192a7f143fbc9eca913bc77a2cf0ce95e3e7a3a (patch)
tree907291985be19ed8cfc52485ff18514afe5675c8 /src/lib/Media/Anime/Airing/classify.test.ts
parentfix(match): normalize "S2"-style season suffix in title preprocessing (diff)
downloaddue.moe-0192a7f143fbc9eca913bc77a2cf0ce95e3e7a3a.tar.xz
due.moe-0192a7f143fbc9eca913bc77a2cf0ce95e3e7a3a.zip
fix(match): extend episode shift window and shift native episode countHEADmain
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.ts4
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);