diff --git a/index.js b/main.js similarity index 97% rename from index.js rename to main.js index 6acb643..88f724f 100644 --- a/index.js +++ b/main.js @@ -91,11 +91,15 @@ document.addEventListener('DOMContentLoaded', function () { src: [url], html5: true, volume: 0.5, + // In der playStream Funktion innerhalb von onplay: onplay: () => { stopButton.classList.remove('hidden'); const stationName = item.querySelector('h3').textContent; if (window.UI) window.UI.updateDocumentTitle(stationName); - currentStationName.textContent = 'Es läuft: ' + stationName; + + // Wir setzen das Icon für den Sender + currentStationName.innerHTML = ` ${stationName}`; + if (window.MetaHandler) window.MetaHandler.start(url); }, onstop: () => {