CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 14s
CI / federation-interop (push) Successful in 1m7s
CI / test (push) Successful in 3m24s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 6s
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>
48 lines
2.0 KiB
HTML
48 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Overview · Scrobbler</title>
|
|
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%231c2330'/%3E%3Ccircle cx='8' cy='8' r='3.5' fill='%23f2a541'/%3E%3C/svg%3E">
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<script src="config.js"></script>
|
|
<script type="module" src="js/dashboard.js"></script>
|
|
</head>
|
|
<body>
|
|
<header class="site-header" id="site-header"></header>
|
|
<main id="main">
|
|
<h1 class="visually-hidden">Overview</h1>
|
|
<div id="panel" class="panel" aria-live="polite"></div>
|
|
<section aria-labelledby="song-search-title" class="song-search">
|
|
<h2 id="song-search-title" class="visually-hidden">Find a song</h2>
|
|
<div class="field">
|
|
<label for="song-search">Find a song</label>
|
|
<input id="song-search" type="search" autocomplete="off" placeholder="Search your scrobbles…">
|
|
</div>
|
|
<ul class="search-results" id="song-search-results" hidden></ul>
|
|
</section>
|
|
<section aria-labelledby="charts-title">
|
|
<div class="section-head">
|
|
<h2 id="charts-title">Most played</h2>
|
|
<fieldset class="selector" id="period">
|
|
<legend class="visually-hidden">Period</legend>
|
|
</fieldset>
|
|
</div>
|
|
<div class="charts">
|
|
<div><h3 class="muted">Artists</h3><ol class="ranking" id="top-artists"></ol></div>
|
|
<div><h3 class="muted">Albums</h3><ol class="ranking ranking-art" id="top-albums"></ol></div>
|
|
<div><h3 class="muted">Tracks</h3><ol class="ranking" id="top-tracks"></ol></div>
|
|
</div>
|
|
</section>
|
|
<section aria-labelledby="recent-title">
|
|
<div class="section-head">
|
|
<h2 id="recent-title">Recently played</h2>
|
|
<a href="history.html">Full history</a>
|
|
</div>
|
|
<ol class="log log-stacked log-art" id="recent"></ol>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|