From a40e4d22116bff48d6c3f19e49a8b02dab6fad73 Mon Sep 17 00:00:00 2001 From: Pen Anderson Date: Wed, 27 May 2026 06:39:44 -0500 Subject: [PATCH] Fix audio load --- web/src/routes/artist/[id]/SidePlayer.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/routes/artist/[id]/SidePlayer.svelte b/web/src/routes/artist/[id]/SidePlayer.svelte index 4f5509a..ad683e7 100644 --- a/web/src/routes/artist/[id]/SidePlayer.svelte +++ b/web/src/routes/artist/[id]/SidePlayer.svelte @@ -19,6 +19,7 @@ } if (!audio) return; if (audio.paused) { + if (audio.readyState < 3) loading = true; audio.play().catch(() => undefined); } else { audio.pause(); @@ -95,7 +96,7 @@ { loading = true; errored = false; }} + onloadstart={() => { errored = false; }} oncanplay={() => { loading = false; }} onwaiting={() => { loading = true; }} onplaying={onPlaying}