jailsonsb2 / RadioplayerAPI

Radio Player Icecast/Shoutcast with REST API Now Playing. This PHP project displays information about songs playing on Icecast/Shoutcast radio streams, including history, album art, lyrics, and Progressive Web App (PWA) support.
https://radioplayer.icu
3 stars 1 forks source link

Sometimes it display different title, artist and image. #1

Closed Bossfrosty closed 1 day ago

Bossfrosty commented 6 days ago

Sometimes, the currently playing song information from Zeno doesn't match the actual artist and song title, but if you check the history / api, it displays/saved the correct information. Just wondering why sometimes it gets different title.

jailsonsb2 commented 5 days ago

image In some API responses, it was receiving the value "undefined" and performing the album cover search using this term. I implemented a check to prevent it from searching for the album cover if the value is "undefined," thus displaying the default cover instead.

jailsonsb2 commented 5 days ago

Just update the main.js file with the new available version.

Bossfrosty commented 5 days ago

I haven't tried your updated main.js, but I tried changing currentStation.server || "itunes" to currentStation.server || "spotify" yesterday. I think it's working perfectly now. I'm not sure what else could happen after I changed it to "spotify."

So far, it is now displaying the correct title, artist, and image. It matches what is currently playing from Zeno.

jailsonsb2 commented 5 days ago

You can pass this parameter via index file -> Githubissues.

  • Githubissues is a development platform for aggregating issues.