-
Notifications
You must be signed in to change notification settings - Fork 15
SHOUTcast Radio Directory: Import 63 000 streams #34
Comments
https://www.shoutcast.com/Developer says
I filed a request with this text:
|
Well, I got a API key a while ago. Example how to use it from http://wiki.shoutcast.com/wiki/SHOUTcast_Radio_Directory_API#Get_Top_500_Stations The XML was obfuscated so I had to pretty print it: xmllint Top500.xml --format
As you can see, there are no playlists in the XML. I have asked SHOUTcast to include them. I'll get back on this later. |
Dunno if this is still relevant or not but you're given all of the information in the SC API responses to be able to generate the SC playlist url as needed. You assume 'shoutcast.com' & then append the appropriate values from the 'tunein' part of the response (depending on the playlist type you want to use) & then just append the 'id' in the station entry. Though you can probably just assume a hard-coded string for the playlist without using the 'tunein' part & just append the 'id'. |
@dr0biwan Can you please give an example for name="Dance Wave Retro!"? |
For that example (if going for the m3u version), then you'd have "shoutcast.com/sbin/tunein-station.m3u?id=1057402" as the playlist which then the client / tooling parses to get to the actual stream url(s) (since the directory listing can depending on the station's setup either be made up of 1 server or a cluster of servers). I should probably note that I used to work maintaining that API & other SC aspects for a few years though whoever is left in support should have been able to give you this information about the playlists (even if it meant pointing you to the wiki docs). |
Thanks. I just needed to add "http://yp." at the beginning of the URL like this to make it work:
Interesting, do you also got an API account? |
It should work without the "http://yp." and just using "http://" so is a bit odd it's not working for the shorter url for you. I was issued a devid before I was let go though it's not hard to find winamp's own or other peoples devids (not that they're needed for accessing the tunein links). |
Yes, http://shoutcast.com/sbin/tunein-station.pls?id=1057402 (VLC requires "https://") also worked. Thanks. |
The SHOUTcast Radio Directory can be downloaded and used by developers who wish to use it, and there are no non-free restrictions.
We should of course give credit to SHOUTcast on the main page of radio-browser.info if they give us access to the API.
Interesting links
The text was updated successfully, but these errors were encountered: