segler-alex / radiobrowser-api

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

Bitrate information is sometimes "0" #38

Open haecker-felix opened 6 years ago

haecker-felix commented 6 years ago

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.

segler-alex commented 6 years ago

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 :)