segler-alex / radiobrowser-api

radio browser server api
GNU Affero General Public License v3.0
72 stars 15 forks source link

Multiple Streams Formats #58

Open kousu opened 5 years ago

kousu commented 5 years ago

Stations that stream at multiple bitrates or in multiple codecs are not handled well. Right now, the workaround people seem to be using is to make multiple records for each format, e.g. http://www.radio-browser.info/gui/#!/byname/soma has most of the SomaFM streams in MP3 and AAC. But the records are isolated so updates to tags or the name of one cannot help the other. Furthermore, Soma actually streams in five formats: AAC: 128k 64k 32k, MP3: 256k 128k.

It would be smoother to merge all these records and make the stream URL instead a stream list. The data entry UI could be updated to allow a .pls / .m3u link, and in that case to read it and fill in a list, but otherwise to assume the link is a single entry and to make the list one entry. The RadioDroid UI could be updated to allow people to select the format, if there's an option, so that people can adjust themselves to their bandwidth capping situation.

(This overlaps with #43 / #15, but I don't think it's a duplicate)