aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data/AniList
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-28 08:45:27 +0000
committerFuwn <[email protected]>2026-03-28 08:45:27 +0000
commit59c609aa089248cbb4d4106e9f3c2faa807aed5e (patch)
tree2c9394daa44f47447c5bcad017abc0c8cc7593ae /src/lib/Data/AniList
parentfix(anilist): restore completed list filters (diff)
downloaddue.moe-59c609aa089248cbb4d4106e9f3c2faa807aed5e.tar.xz
due.moe-59c609aa089248cbb4d4106e9f3c2faa807aed5e.zip
fix(cache): restore instant filters and shared AniList cache
Diffstat (limited to 'src/lib/Data/AniList')
-rw-r--r--src/lib/Data/AniList/cacheHydration.ts4
-rw-r--r--src/lib/Data/AniList/media.ts2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Data/AniList/cacheHydration.ts b/src/lib/Data/AniList/cacheHydration.ts
index ac3b4d72..434d2a82 100644
--- a/src/lib/Data/AniList/cacheHydration.ts
+++ b/src/lib/Data/AniList/cacheHydration.ts
@@ -6,8 +6,6 @@ import localforage from "localforage";
type MediaCacheKind = "anime" | "manga";
-const cacheStorageKey = (kind: MediaCacheKind) => `${kind}:v2`;
-
interface StoredLastPruneTimes {
anime: number;
chapters: number;
@@ -34,7 +32,7 @@ export const hydrateMediaListCache = (kind: MediaCacheKind) => {
const promise = (async () => {
const [cache, pruneTimes] = await Promise.all([
- localforage.getItem<string>(cacheStorageKey(kind)),
+ localforage.getItem<string>(kind),
localforage.getItem<StoredLastPruneTimes>("lastPruneTimes"),
]);
diff --git a/src/lib/Data/AniList/media.ts b/src/lib/Data/AniList/media.ts
index fee23113..211174e0 100644
--- a/src/lib/Data/AniList/media.ts
+++ b/src/lib/Data/AniList/media.ts
@@ -254,7 +254,7 @@ const usesSharedMediaStore = (options: CollectionOptions) =>
!!options.includeCompleted && !options.all && !options.includeRelations;
const cacheStorageKey = (type: Type, options: CollectionOptions) => {
- const baseKey = type === Type.Anime ? "anime:v2" : "manga:v2";
+ const baseKey = type === Type.Anime ? "anime" : "manga";
if (usesSharedMediaStore(options)) return baseKey;