Answer the question
In order to leave comments, you need to log in
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 errorFATAL ERROR syntax error, unexpected '.', expecting variable (T_VARIABLE) or '{' or '$' on line number 4how to fix it. MB is there any other code for receiving?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question