refactor(web): migrate 4 open-coded cover URL sites to coverUrl() helper (C1 small-win)

This commit is contained in:
2026-05-08 11:26:26 -04:00
parent 47c316e211
commit efef9934d4
5 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { coverUrl } from '$lib/media/covers';
import {
player,
togglePlay,
@@ -21,7 +22,7 @@ export function useMediaSession(): void {
artist: t.artist_name,
album: t.album_title,
artwork: [{
src: `/api/albums/${t.album_id}/cover`,
src: coverUrl(t.album_id),
sizes: '512x512',
type: 'image/jpeg'
}]