From 138de8d041afeaf65ab0882db971b042e4fe5299 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Fri, 8 Jul 2022 14:39:39 +0200 Subject: [PATCH] feat: cache episodes in feed --- src/store/index.ts | 4 +++- src/ui/PodcastView/PodcastView.svelte | 28 +++++++++++++++++++++------ 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/store/index.ts b/src/store/index.ts index 622aaf6..8025737 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -12,4 +12,6 @@ export const isPaused = writable(true); export const playedEpisodes = writable<{ [key: string]: PlayedEpisode; }>({}); -export const savedFeeds = writable<{[podcastName: string]: PodcastFeed}>({}); \ No newline at end of file +export const savedFeeds = writable<{[podcastName: string]: PodcastFeed}>({}); + +export const episodeCache = writable<{[podcastName: string]: Episode[]}>({}); \ No newline at end of file diff --git a/src/ui/PodcastView/PodcastView.svelte b/src/ui/PodcastView/PodcastView.svelte index c03213b..d2f3e56 100644 --- a/src/ui/PodcastView/PodcastView.svelte +++ b/src/ui/PodcastView/PodcastView.svelte @@ -1,7 +1,7 @@