Closed llucps closed 3 years ago
This has been asked previously: https://github.com/strawberrymusicplayer/strawberry/issues/257 I had a look at the API but didn't find a way to query by quality, so you have to parse thousands of channels.
to query by quality use the advanced search feature https://at1.api.radio-browser.info/#Advanced_station_search
examples with curl: curl "https://at1.api.radio-browser.info/json/stations/search?name=jazz&bitrateMin=320" OR curl -X POST -d "name=jazz&bitrateMin=320" "https://at1.api.radio-browser.info/json/stations/search" OR curl -d '{"name":"jazz", "bitrateMin":320}' -H "Content-Type: application/json" -X POST https://at1.api.radio-browser.info/json/stations/search
POST is prefered. Use GET only if you absolutely must.
If you need XML you may do this curl -d '{"name":"jazz", "bitrateMin":320}' -H "Content-Type: application/json" -X POST https://at1.api.radio-browser.info/xml/stations/search
If you need M3U you may do this curl -d '{"name":"jazz", "bitrateMin":320}' -H "Content-Type: application/json" -X POST https://at1.api.radio-browser.info/m3u/stations/search
But even just letting the use query the api for specific names is useful in itsself, even if you get back a stream with lower bitrate. some streams do not have high bitrate available, some streams on the earth are located in coutries that have bad network. therefore querying by bitrate should only be an option for the user. not mandatory.
First of all thank you for adding Radios into Strawberry, it's a good start. I actually have a curated playlist just for radios, so I use strawberry to listen radio stations very much.
I would encourage to add https://api.radio-browser.info/ . I don't know how difficult it would be, but it was recently added into Clementine this is the pull request https://github.com/clementine-player/Clementine/pull/6920
Thanks!