diff --git a/src/lib/audio/episode-data.ts b/src/lib/audio/episode-data.ts index 071f5a8..09ee4f2 100644 --- a/src/lib/audio/episode-data.ts +++ b/src/lib/audio/episode-data.ts @@ -30,6 +30,7 @@ const episode_attributes = derived< details: $details, will_autoplay: $audio.autoplay, is_paused: $audio.paused, + start_at: podcast_progress.get_episode($audio.src)?.start_at ?? 0, }); } diff --git a/src/lib/progress/db-state.ts b/src/lib/progress/db-state.ts index 9e1b811..117b898 100644 --- a/src/lib/progress/db-state.ts +++ b/src/lib/progress/db-state.ts @@ -21,11 +21,12 @@ const stash_episode_progress = () => { }; const get_episode_progress = (src: string): Pick | null => { - const start_at = _episode_progress_map.get(src); + const pathname = get_src_pathname(src); + const start_at = _episode_progress_map.get(pathname); if (!start_at) return null; - info('found saved progress: ', src, start_at); + info('found saved progress: ', pathname, start_at); return { start_at: start_at }; };