Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get XML station list from shoutcast directory?
    text
    copied!<p>Currently, I am fetching data in my radio app from another online radio source, and filtering the results by implementing:</p> <pre><code> DDXMLNode* rootNode = [xmlDoc rootElement]; NSArray* nodes = nil; nodes = [rootNode nodesForXPath:@"child::Station[Genres/Genre='POP']" error:nil]; for(DDXMLNode* node in nodes) { Station* s = [[Station alloc] init]; DDXMLNode* nameNode = [[node nodesForXPath:@"Name" error:nil] objectAtIndex:0]; s.name = [nameNode stringValue]; DDXMLNode* bitRateNode = [[node nodesForXPath:@"Streams/Stream/BitRate" error:nil] objectAtIndex:0]; s.bitRate = [bitRateNode stringValue]; DDXMLNode* streamNode = [[node nodesForXPath:@"Streams/Stream/StreamUrl" error:nil] objectAtIndex:0]; s.streamURL = [streamNode stringValue]; [array addObject:s]; } </code></pre> <p>This filters out all the rest and only gives me the stations that are POP. This is working well with the current stations, but I need to be able to get station listings from Shoutcast. I have searched but can't find a specific place to get this directory / XML. I have tried going to the shoutcast website and "becoming a partner" but I get a message saying that they are working on the next version of shoutcast and are not allowing any new partners (although this message has been appearing for the last year). Is it even necessary to join in order to get access to all the shoutcast stations XML so that I may integrate them into my app?</p> <p>The end result for me needs to be that I have a URL that lets me get the list of all radio stations from shoutcast / as well as an Update URL so that users are able to drag down and update all the listings URL to ensure that they work. <em>(I have already implemented the refresh function with my current stations)</em></p> <p><strong>Update:</strong> By looking at the API Documentation you can find here: <a href="http://wiki.winamp.com/wiki/SHOUTcast_Radio_Directory_API" rel="nofollow">LINK</a> They seem to make a reference to a <code>Dev ID</code> again, but then again this takes me to what I mentioned before about <em>Becoming a partner</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload