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(' ยท '),