milaq / YCast

Self hosted vTuner internet radio service emulation
Other
243 stars 93 forks source link

Add support for station playlists #9

Closed milaq closed 5 years ago

milaq commented 5 years ago

Some stations only hand out playlist links, not direct links to the stream (e.g. pls or m3u).

We could use a way to handle that.

segler-alex commented 5 years ago

there is a way for all stations in radio-browser.info http://www.radio-browser.info/webservice#Playable_station_url

milaq commented 5 years ago

Hey Alex,

thanks for the heads-up. The thing is, we would need to fetch the playable station URL for all stations listed in the directory as vTuner expects to know the station URL in advance. That would very much slow down the directory listing and put quite a strain on your Radiobrowser API.

Possible solutions that come to mind:

Another solution would be that the Radiobrowser API hands out a new URL for the bare stream file for every station response, e.g.:

[...]
"url": "http://digitacdn.akamaized.net/hls/live/629243/groove/master-128000.m3u8",
"playable_url": "http://digitacdn.akamaized.net/hls/live/629243/groove/02152/seg128000-04303855.aac"
[...]

where playable_url is just the first playlist entry.

But I do not want to burden you with additional work :) Still, this may be a feature that would be nice to have for Radiobrowser.

milaq commented 5 years ago

Fixed by https://github.com/milaq/YCast/commit/f2f4c7a9082d213f48bf079e707505ad03b15d10