From 458c90fb30976a352cd49135d9d21d697839b7a9 Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Sun, 7 Jun 2026 10:37:59 -0300 Subject: [PATCH] fix: load album art from file:///tmp/skeledance_art.jpg Avoids WebEngine mixed-content block on http:// img src from file://. music-light now saves the PIL image to disk on each track change. Co-Authored-By: Claude Sonnet 4.6 --- plugin/contents/ui/dancer.html | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/plugin/contents/ui/dancer.html b/plugin/contents/ui/dancer.html index d277031..6ab2c94 100644 --- a/plugin/contents/ui/dancer.html +++ b/plugin/contents/ui/dancer.html @@ -1067,15 +1067,8 @@ function fetchTheme() { if (d.rgb) applyTheme(d.rgb); if (d.art_url && d.art_url !== lastArtUrl) { lastArtUrl = d.art_url; - fetch('http://127.0.0.1:8765/art?' + Date.now()) - .then(r => r.blob()) - .then(blob => { - const img = document.getElementById('albumArtImg'); - if (img._blobUrl) URL.revokeObjectURL(img._blobUrl); - img._blobUrl = URL.createObjectURL(blob); - img.src = img._blobUrl; - }) - .catch(() => {}); + document.getElementById('albumArtImg').src = + 'file:///tmp/skeledance_art.jpg?' + Date.now(); } }) .catch(() => {});