Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for station playlists #9

Closed
milaq opened this issue Aug 12, 2019 · 3 comments
Closed

Add support for station playlists #9

milaq opened this issue Aug 12, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@milaq
Copy link
Owner

milaq commented Aug 12, 2019

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.

@milaq milaq added the enhancement New feature or request label Aug 12, 2019
@segler-alex
Copy link

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

@milaq
Copy link
Owner Author

milaq commented Aug 19, 2019

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:

  • Generate a playable station URL in YCast
  • Proxy station URLs and transparently using Radiobrowser's v2/json/url/stationid only when the station is directly requested.

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
Copy link
Owner Author

milaq commented Aug 27, 2019

Fixed by f2f4c7a

@milaq milaq closed this as completed Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants