ndlopez / NowPlaying

Stream Player for ThirdRock Radio
0 stars 0 forks source link

Parsing order to fetch xml #3

Open ndlopez opened 2 years ago

ndlopez commented 2 years ago

I am using an async function to get current playing song as a string and I parse this to another function that fetches info from an api. Sometimes the parsed string is like: artist - song, which is fine, but other times is: song - artist. This bug returns a null from api and I dont get the desired url.

ndlopez commented 1 year ago

Better to get the json output format and fetch the img url from there.