segler-alex / radiobrowser-api

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

Provide stream metadata via api #27

Closed onny closed 6 years ago

onny commented 6 years ago

Hey, it would be really nice if you could provide stream metadata via an api call. A lot of mp3 streams provide metadata of the radio station which includes the currently played track.

Best regards, Jonas

0ttoman commented 6 years ago

according to the faq the streams are currently checked about every two days to check if they are broken. While it could potentially also fetch the metadata, this would mean that things like 'currently playing' are always outdated. This would be a great feature anyway because we could fetch the genres and add them to the database. see #32 (I just looked.. the api already seems to be doing something with the genre, also it fetches the bitrate and codex) o-- Lets say the average length of the tracks is 5 min, so the stream has to be checked about 12 times an hour to fetch at least most of the played tracks. 12 * 15000 (current stations) = 180000 (checks per hour) = 50 (checks per second) I don't think this will be possible in the near future :/

segler-alex commented 6 years ago

i will close this, no stream will let me check that often. i already got kicked out on some channels when checking daily.