WXYC / wxyc-ios-64

A new WXYC iOS app
MIT License
7 stars 3 forks source link

Display Name of Current DJ / Show #9

Open dvdokkum opened 6 years ago

dvdokkum commented 6 years ago

There isn't much structured data for this, but if the DJ supplies a public "nickname" when they start their show that metadata should show up somewhere in the playlist json api.... i think?

swardlincoln commented 6 years ago

@dvdokkum I was looking at this url to see if there was any way to parse out DJ info, but I did find anything. Was the URL I was looking at the source of the text data that is populating the app?

dvdokkum commented 6 years ago

Yes, that's what we're using currently. More generically, http://www.wxyc.info/playlists/recentEntries (and the v2 version). You're right, it looks like that json feed does not include the show start/stop entry that shows in the regular schedule. @jakebromberg you have thoughts on this, i believe?

jakebromberg commented 6 years ago

We either need to work with Tim Ross to extend his API, or scrape the playlist HTML to get this information.

swardlincoln commented 6 years ago

Does swift have a scraping lib? @jakebromberg

jakebromberg commented 6 years ago

You could use NSXMLParser, but this is definitely the kind of thing that should be done on a front end service layer. And the parser library sits in Foundation, which isn't available on Linux, is we were to deploy a Swift service.

swardlincoln commented 6 years ago

Ah...okay. So basically it would be best to reach out to Tim and have him extend the API?

jakebromberg commented 6 years ago

Yeah. I'm in town starting Saturday. I'm going to see if he wants to get lunch.