radiobrowser-api
radiobrowser-api copied to clipboard
Bitrate information is sometimes "0"
On some stations the bitrate information is 0.
For example "Deutschlandfunk"
id":"59591"
"name":"Deutschlandfunk [Ogg 104k]",
...
"bitrate":"0"
...
When the bitrate information can't be read correctly, it think it's better to use "-" or "?" instead of 0.
not all streams do provide bitrate information in the header. i could do a deep check by playing each stream, but for now i keep it simple. maybe after the transition from PHP to RUST on the server, i will continue this idea. but i have to think about it first, i do not want to program a player myself :)