C
C
Crima2021-02-28 15:08:34
SHOUTcast
Crima, 2021-02-28 15:08:34

How to get the current track title and Shoutcast cover art?

Found this code

// Get current song
function NowPlaying(){
    $.ajax({
        url: "http://www.mofosounds.com:8000/currentsong?sid=#", 
        type: "GET",
        success: function(result) {
            $("#playing").html(result);
        }
    });
}

// Update every 5 seconds
setInterval(function(){
    NowPlaying();
}, 5000);
but gives an error
FATAL ERROR syntax error, unexpected '.', expecting variable (T_VARIABLE) or '{' or '$' on line number 4
how to fix it. MB is there any other code for receiving?

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question