From 3122bc4bf9320061e71efc0ed37cec2e0ba795b2 Mon Sep 17 00:00:00 2001 From: SirBlob Date: Sun, 1 Nov 2026 01:54:15 -0400 Subject: [PATCH] Skip already cached songs on startup --- src/lib/server/musicCache.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/server/musicCache.ts b/src/lib/server/musicCache.ts index 9855267..e065fe6 100644 --- a/src/lib/server/musicCache.ts +++ b/src/lib/server/musicCache.ts @@ -57,6 +57,7 @@ export function refreshMusicCache() { (async () => { await prepareCacheDirectory(); for (const videoId of playlistVideoIds) { + if (readySongs.has(videoId)) continue; try { await downloadSong(videoId); console.log(`Music cached: ${videoId}`);