From a7c6fc096eaf1c23532192866b52b2e271576d72 Mon Sep 17 00:00:00 2001 From: Ncbudd Date: Thu, 26 Nov 2026 16:27:10 -0500 Subject: [PATCH] [SeerrNG #730] Music speed and fixes from a live pass (Lumen part) Lumen changes from snapetech-org/seerrng#730: - albumArt() sends archive.org Cover Art Archive thumbnails (which 404 for a while after an upload) through SeerrNG's album-art route - song request cards in Requests show the song's cover --- lumen/src/components/MusicSections.tsx | 7 ++++++- lumen/src/pages/Requests.tsx | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lumen/src/components/MusicSections.tsx b/lumen/src/components/MusicSections.tsx index 6017bbc..ff1266d 100644 --- a/lumen/src/components/MusicSections.tsx +++ b/lumen/src/components/MusicSections.tsx @@ -595,8 +595,13 @@ export const albumArt = ( artist?: string | null, title?: string | null ): string | undefined => { + // CAA hands out archive.org thumbnail links, which 404 for a while after + // an upload: those go through the album-art route too const fromCaa = - !coverUrl || /^https:\/\/coverartarchive\.org\//.test(coverUrl); + !coverUrl || + /^https:\/\/(?:coverartarchive\.org|archive\.org\/download\/mbid-|ia\d+\.us\.archive\.org\/)/.test( + coverUrl + ); if (!fromCaa || !mbid || !/^[0-9a-f-]{36}$/i.test(mbid)) return coverUrl ?? undefined; const query = new URLSearchParams(); diff --git a/lumen/src/pages/Requests.tsx b/lumen/src/pages/Requests.tsx index aea94c8..6560dfd 100644 --- a/lumen/src/pages/Requests.tsx +++ b/lumen/src/pages/Requests.tsx @@ -29,6 +29,7 @@ import { canViewAllRequests, Pill, } from '../components/detail'; +import { songArt } from '../components/MusicSections'; import { RequestEditSheet } from '../components/requestEdit'; import RequestEpisodeQueueSheet, { canEditEpisodeQueue, @@ -1231,6 +1232,8 @@ function trackRequestRow(tr: TrackRequestItem): Row { return { r, title: tr.title, + // the song's cover by artist and title (song requests carry no album id) + art: songArt(tr.artist, tr.title), cover: true, href: '/track-requests', sub: ['Track', tr.artist].filter(Boolean).join(' ยท '),