From 8f9851c50f5c4214e65b1a5584d1e90dee630cc5 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Wed, 18 Feb 2026 21:13:03 -0800 Subject: [PATCH] add image fallback to library artists --- webui/static/script.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/webui/static/script.js b/webui/static/script.js index 6977733f..1a50c3a8 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -26081,9 +26081,15 @@ function updateArtistHeroSection(artist, discography) { imageElement.onerror = () => { console.error(`❌ Failed to load artist image: ${artist.image_url}`); - imageElement.style.display = "none"; - if (fallbackElement) { - fallbackElement.style.display = "flex"; + // Try Deezer fallback before emoji + if (artist.deezer_id && !imageElement.dataset.triedDeezer) { + imageElement.dataset.triedDeezer = 'true'; + imageElement.src = `https://api.deezer.com/artist/${artist.deezer_id}/image?size=big`; + } else { + imageElement.style.display = "none"; + if (fallbackElement) { + fallbackElement.style.display = "flex"; + } } }; } else {