Version 0.9.0f - Ajout du Home Menu V2

This commit is contained in:
CICD - Pipeline 2023-09-11 22:39:33 +02:00
parent 84ca1ae59b
commit a7b40b0086
2 changed files with 14 additions and 2 deletions

View File

@ -9,5 +9,16 @@
"isStream": true,
"uri": "https://www.youtube.com/watch?v=jfKfPfyJRdk",
"thumbnail": "https://img.youtube.com/vi/jfKfPfyJRdk/default.jpg"
},
{
"track": "QAAAkAIALUxhZHkgR2FnYSAtIFBva2VyIEZhY2UgKE9mZmljaWFsIE11c2ljIFZpZGVvKQAJTGFkeSBHYWdhAAAAAAADQ/AAC2JFU0dMb2pOWVNvAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9YkVTR0xvak5ZU28AB3lvdXR1YmUAAAAAAAAAAA==",
"title": "Lady Gaga - Poker Face (Official Music Video)",
"identifier": "bESGLojNYSo",
"author": "Lady Gaga",
"duration": 214000,
"isSeekable": true,
"isStream": false,
"uri": "https://www.youtube.com/watch?v=bESGLojNYSo",
"thumbnail": "https://img.youtube.com/vi/bESGLojNYSo/default.jpg"
}
]

View File

@ -263,9 +263,10 @@ socket.on("ALWAYS/ALL_RADIO", (resp) => {
for(var title of resp ) {
var playBtn = document.getElementById(resp.indexOf(title) +'_radio_pplay')
const playBtn = document.getElementById(resp.indexOf(title) +'_radio_pplay')
playBtn.addEventListener("click", () => {
send("ADD_SONG_NOW", resp[playBtn.id.replace("_radio_pplay", "")])
})