From 0192a7f143fbc9eca913bc77a2cf0ce95e3e7a3a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 26 May 2026 14:15:12 +0000 Subject: fix(match): extend episode shift window and shift native episode count 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. --- src/lib/Media/Anime/Airing/classify.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/Media/Anime/Airing/classify.test.ts') 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); -- cgit v1.2.3