- art.js revoked each thumbnail's blob: URL on its own "load" event,
but the same URL is shared (via the lookup cache) by every
thumbnail for that album on the page - revoking after the first
one loaded broke every other <img> still using it. Stop revoking;
this is a full-page-reload site, so the browser releases the
memory on navigation anyway.
- .ranking-art/.log-art thumbnails inherited their row's default
cross-axis alignment (baseline for .ranking, stretch for .log),
which suits text but left the art sitting high against two-line
name+artist text. Center them explicitly instead.
Verified in-browser across all four surfaces (song page hero,
dashboard Albums ranking, Recently played, History) with real
MusicBrainz/Cover Art Archive artwork.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Hn2QwS1HRT8tFAzo8ew63
New frontend/js/art.js builds a thumbnail that starts as a placeholder
and swaps itself for the real cover once (if) it resolves, fetched
via the new /api/v1/art/album endpoint with the existing bearer-auth
transport and handed to the browser as a blob: object URL (no
query-string tokens, no hotlinking).
Wired into all four places a track/album appears: the song page's
glowing display, the dashboard's "Most played > Albums" list, the
dashboard's "Recently played" list, and the full History page -
Artists/Tracks rankings are left alone.
Also fixes a real reliability gap found during manual testing:
Cover Art Archive's existence check (a HEAD request, redirected
through archive.org) had no retry at all, unlike the MusicBrainz
search next to it, and an occasional slow/flaky response there was
enough to fail a lookup outright. It now retries the same way.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>