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

Extractor for NPR music #6960

Open
spf2 opened this issue Sep 24, 2015 · 2 comments
Open

Extractor for NPR music #6960

spf2 opened this issue Sep 24, 2015 · 2 comments

Comments

@spf2
Copy link

@spf2 spf2 commented Sep 24, 2015

Here's an example: http://www.npr.org/player/embed/439491238/440274224

I can look into adding an extractor for it but thought I'd first post a bug in case anyone had any pointers, experience with npr, etc. BTW, it looks like it's jwplayer underneath...

@jbaiter
Copy link

@jbaiter jbaiter commented Oct 29, 2015

It should be fairly easy to get to the MP3s:

  • Get an API key by registering here: http://www.npr.org/templates/reg/
  • Get the ID and mediaID for the stream you want (439491238 and 440274224 in your case)
  • Grab the XML from http://api.npr.org/query?id=$ID&mediaId=$MEDIAID&fields=show,audio,multimedia,parent,titles,teasers,dates,song,album,product,text&apiKey=$APIKEY
  • The URL for the MP3 file can be found with the following XPath expression: //format/mp3[@type="mp3"]

Maybe I'll hack something together when I find the time...

@sa7mon
Copy link
Contributor

@sa7mon sa7mon commented Jun 20, 2017

Was searching for an issue I'm currently having and found this. Can probably be closed as NPR now has an extractor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.