Web: keep real playlist art in downloads, hide quota on HTTPS

The group art fetch now falls back to the raw composite when the Plex
transcode fails, and the Downloads card uses any stored group art.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-20 17:32:38 -08:00
1 parent 0ef4c650d1
commit 536de29e4d
2 files changed
+11 -5

No files matched your search

+5 -1
View File
@@ -551,7 +551,11 @@ export const Radio = {
const artBlob = url => url && !url.startsWith("data:") ? fetch(url).then(r => r.ok ? r.blob() : null).catch(() => null) : null;
export async function saveOffline(tracks, onStatus, group = null) {
let n = 0;
if (typeof group?.art === "string") group = { ...group, art: await artBlob(group.art) };
if (group?.art && !(group.art instanceof Blob)) {
let blob = null;
for (const u of [group.art].flat()) if ((blob = await artBlob(u))) break;
group = { ...group, art: blob };
}
for (const t of tracks) {
if (Offline.has(t.id)) continue;
onStatus?.(`Downloading ${++n} of ${tracks.length}: ${t.title}`);