0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00
This commit is contained in:
2025-12-27 22:18:25 +01:00
parent b83cd98b49
commit 1b16ce2a53

View File

@@ -427,7 +427,7 @@
const selected = playlist[selectedPlaylistIndex];
if(!selected) { alert("Invalid selection"); return; }
const path = (selected.official ? "" : "!") + selected.path;
ws.send(JSON.stringify({action:"add_to_toplay", songs: [path], on_top: top}))
ws.send(JSON.stringify({action:"add_to_toplay", songs: [path], top: top}))
Array.from(document.getElementById("playlist-ul").children).forEach(c => c.classList.remove("selected"));
selectedPlaylistIndex = null;
return;
@@ -452,7 +452,7 @@
}
if (fullPath && ws && ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify({ action:"add_to_toplay", songs:[fullPath], on_top: top}));
ws.send(JSON.stringify({ action:"add_to_toplay", songs:[fullPath], top: top}));
return true;
}