node-internet-radio
node-internet-radio copied to clipboard
Information always returns from stream
I'm trying to use the getStationInfo method and it works, but always resolves to stream fetch.
Your tests are passing, however I can't resolve data by specifying (soutcast v1,v2,icecast)
These are the urls that I'm testing with:
const url = "http://ice1.somafm.com/groovesalad-128.mp3";
const url2 = "http://swr-swr3-live.cast.addradio.de/swr/swr3/live/mp3/128/stream.mp3"
const url3 = "http://1a-rock.radionetz.de/1a-rock.mp3"
const url4 = "http://23.27.51.2:6699"
const url5 = "http://tomoradio.servemp3.com:8000/listen.aac"
getStationInfo(url,(error,data) => {
console.log('error ',error)
console.log(data)
},StreamSource.STREAM // anything other than "stream" returns error.
)
Sorry I haven't had a chance to take a look at this yet. I haven't forgotten about it! :)