web: a form's own failure wording shows for an unknown error; drop the unused audio loader seam (#8300)
release / go (push) Successful in 1m41s
release / integration (push) Successful in 2m21s
release / web (push) Successful in 1m1s
release / govulncheck (push) Successful in 18s
release / android (push) Successful in 5m13s
release / Build signed APK (push) Successful in 7m0s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 37s
release / Verify release artifacts (tag releases only) (push) Skipped

errMessage took a fallback but looked codes up with copyForCode, which never
returns nothing, so a settings card's "Couldn't save proxy depth." was
never seen: an unknown code read "Something went wrong." It now uses
knownCopy, as the register page already did, and copyForCode is gone.

audioLoader let a desktop shell swap the stream URL for its own cache. No
such shell exists and nothing called setAudioLoader, so the player reads
the track's stream_url directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:14:09 -05:00
co-authored by Claude Opus 5.5
parent 877bb7e9c4
commit e11e2f1649
6 changed files with 16 additions and 106 deletions
+2 -4
View File
@@ -26,7 +26,6 @@
import { useServerEvents } from '#lib/serverEvents.svelte.js';
import { useGlobalShortcuts } from '#lib/player/shortcuts.svelte.js';
import { applyMetaThemeColor } from '#lib/theme/applyMetaThemeColor.svelte.js';
import { audioLoader } from '#lib/player/audioLoader.js';
import { attachStallRetry } from '#lib/player/stallRetry.js';
import {
applyGain,
@@ -67,7 +66,7 @@
$effect(() => {
if (!audioEl) return;
const cur = player.current;
const src = cur ? audioLoader.resolve(cur) : null;
const src = cur ? cur.stream_url : null;
if (src) {
const absolute = new URL(src, window.location.origin).href;
if (audioEl.src !== absolute) audioEl.src = src;
@@ -87,10 +86,9 @@
const next = player.queue[player.index + 1];
const ratio = player.duration > 0 ? player.position / player.duration : 0;
if (next && ratio >= 0.5) {
const nextSrc = audioLoader.resolve(next);
const nextSrc = next.stream_url;
if (prefetchEl.src !== new URL(nextSrc, window.location.origin).href) {
prefetchEl.src = nextSrc;
audioLoader.prefetch?.(next);
}
} else if (!next && prefetchEl.src) {
prefetchEl.removeAttribute('src');