Last active
August 29, 2015 13:57
-
-
Save krasnoukhov/9599730 to your computer and use it in GitHub Desktop.
NPR playlist downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "open-uri" | |
require "ox" | |
require "mp3info" | |
xml = File.read("playlist.xml") | |
doc = Ox.parse(xml) | |
# nprml>list>story>audio | |
audios = doc.nodes | |
.find { |x| x.value == "nprml" }.nodes | |
.find { |x| x.value == "list" }.nodes | |
.find { |x| x.value == "story" }.nodes | |
.select { |x| x.value == "audio" && x.attributes[:type] == "standard" } | |
audios.each_with_index do |audio, idx| | |
title = audio.nodes | |
.find { |x| x.value == "title"} | |
.nodes.first | |
link = audio.nodes | |
.find { |x| x.value == "format" }.nodes | |
.find { |x| x.value == "mp3" && x.attributes[:type] == "mp3" } | |
.nodes.first | |
number = (idx+1)<10?"0#{idx+1}":(idx+1) | |
name = "#{number} #{title}.mp3" | |
File.open(name, "w") do |f| | |
puts "Downloading: #{name}\n#{link}" | |
f.write(open(link).read) | |
end | |
begin | |
File.unlink("#{name}.tmp") rescue nil | |
Mp3Info.open(name) do |mp3| | |
mp3.tag.title = title | |
mp3.tag.tracknum = number.to_i | |
end | |
rescue Encoding::CompatibilityError | |
puts "Retrying ID3 write" | |
retry | |
end | |
puts "Done." | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "ox" | |
gem "mp3info" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: https://rubygems.org/ | |
specs: | |
mp3info (0.6.18) | |
ox (2.1.1) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
mp3info | |
ox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<nprml version="0.94"> | |
<list> | |
<title><![CDATA[Music]]></title> | |
<teaser><![CDATA[NPR Music features, streams, live concerts and music news.]]></teaser> | |
<miniTeaser/> | |
<link type="api">http://api.npr.org/query?id=1039&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="html">http://www.npr.org/music/</link> | |
<story id="286898446"> | |
<link type="html">http://www.npr.org/2014/03/16/286898446/first-listen-future-islands-singles</link> | |
<link type="api">http://api.npr.org/query?id=286898446&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1gVBqqw</link> | |
<title><![CDATA[First Listen: Future Islands, 'Singles']]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>First Listen</slug> | |
<audio id="288756427" type="standard"> | |
<title>Seasons (Waiting On You)</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi01.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288756427-eca982.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi01&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi01.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi01.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi01,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi01.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288756452" type="standard"> | |
<title>Spirit</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi02.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288756452-f2081a.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi02&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi02.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi02.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi02,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi02.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288756468" type="standard"> | |
<title>Sun In The Morning</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi03.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288756468-ad8574.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi03&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi03.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi03.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi03,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi03.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288757415" type="standard"> | |
<title>Doves</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi04.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288757415-f3fee2.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi04&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi04.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi04.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi04,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi04.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288757427" type="standard"> | |
<title>Back In The Tall Grass</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi05.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288757427-b915b0.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi05&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi05.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi05.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi05,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi05.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288757449" type="standard"> | |
<title>Song For Our Grandfathers</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi06.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288757449-b2ef6c.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi06&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi06.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi06.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi06,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi06.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288757489" type="standard"> | |
<title>Light House</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi07.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288757489-fbfcd5.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi07&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi07.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi07.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi07,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi07.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288757657" type="standard"> | |
<title>Like The Moon</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi08.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288757657-bc7878.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi08&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi08.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi08.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi08,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi08.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288757697" type="standard"> | |
<title>Fall From Grace</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi09.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288757697-0937ec.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi09&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi09.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi09.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi09,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi09.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288758199" type="standard"> | |
<title>Dream Of You And Me</title> | |
<duration>0</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi10.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288758199-80248f.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?staticUrl=/npr/fl/2014/03/20140310_fl_fi10&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_fi10.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_fi10.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_fi10,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_fi10.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
<audio id="288755247" type="primary"> | |
<title>Singles</title> | |
<duration>2535</duration> | |
<description>null</description> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/fl/2014/03/20140310_fl_ficd.mp3?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1288755247-3e62a1.m3u?orgId=1&topicId=1039&aggIds=98679384</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=288755247&type=1&mtype=WM&orgId=1&topicId=1039&aggIds=98679384</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/fl/2014/03/20140310_fl_ficd.3gp?orgId=1&topicId=1039&aggIds=98679384</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/fl/2014/03/20140310_fl_ficd.mp4?orgId=1&topicId=1039&aggIds=98679384</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/fl/2014/03/20140310_fl_ficd,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039&aggIds=98679384</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fl/2014/03/20140310_fl_ficd.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
</story> | |
<story id="289609091"> | |
<link type="html">http://www.npr.org/2014/03/16/289609091/ambrose-akinmusire-music-can-tell-you-what-it-wants-to-be</link> | |
<link type="api">http://api.npr.org/query?id=289609091&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1oNfrVQ</link> | |
<title><![CDATA[Ambrose Akinmusire: 'Music Can Tell You What It Wants To Be']]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>Music</slug> | |
<show> | |
<program id="2" code="ATC">All Things Considered</program> | |
<showDate>Sun, 16 Mar 2014 16:00:00 -0400</showDate> | |
<segNum>11</segNum> | |
</show> | |
<audio id="290714392" type="primary"> | |
<title/> | |
<duration>327</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/atc/2014/03/20140316_atc_music_ambrose_akinmusire.mp3?orgId=1&topicId=1039</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1290714392-891a57.m3u?orgId=1&topicId=1039</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=290714392&type=1&mtype=WM&orgId=1&topicId=1039</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/atc/2014/03/20140316_atc_music_ambrose_akinmusire.3gp?orgId=1&topicId=1039</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/atc/2014/03/20140316_atc_music_ambrose_akinmusire.mp4?orgId=1&topicId=1039</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/atc/2014/03/20140316_atc_music_ambrose_akinmusire,,.mp4.csmil/master.m3u8?orgId=1&topicId=1039</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/atc/2014/03/20140316_atc_music_ambrose_akinmusire.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="true"/> | |
<stream allow="true"/> | |
<embed allow="true"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
</story> | |
<story id="289591639"> | |
<link type="html">http://www.npr.org/blogs/deceptivecadence/2014/03/14/289591639/how-irish-are-you-a-st-paddys-day-puzzler</link> | |
<link type="api">http://api.npr.org/query?id=289591639&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1oMXG91</link> | |
<title><![CDATA[How Irish Are You? A St. Paddy's Day Puzzler]]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>Deceptive Cadence</slug> | |
</story> | |
<story id="290258410"> | |
<link type="html">http://www.npr.org/blogs/therecord/2014/03/15/290258410/lady-gaga-at-sxsw-dont-sell-out-sell-in</link> | |
<link type="api">http://api.npr.org/query?id=290258410&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1i9OFWS</link> | |
<title><![CDATA[Lady Gaga At SXSW: 'Don't Sell Out. Sell In.']]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>The Record</slug> | |
</story> | |
<story id="290192330"> | |
<link type="html">http://www.npr.org/2014/03/16/290192330/get-lucky-on-st-patricks-day-with-ill-take-you-there</link> | |
<link type="api">http://api.npr.org/query?id=290192330&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1i9D7mv</link> | |
<title><![CDATA[Get Lucky On St. Patrick's Day With These 25 R&B Songs]]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>The Mix</slug> | |
<audio id="290242981" type="primary"> | |
<title>I'll Take You There: R&B From NPR Music</title> | |
<duration>0</duration> | |
<description>null</description> | |
<format/> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="true"> | |
<rtmpUrl>rtmp://cp99077.live.edgefcs.net/live/somafm6@73348</rtmpUrl> | |
<hlsUrl>http://nprdmp.ic.llnwd.net/stream/nprdmp_live33_mp3</hlsUrl> | |
</stream> | |
</audio> | |
</story> | |
<story id="290200206"> | |
<link type="html">http://www.npr.org/event/music/290200206/kevin-gates-i-put-all-my-flaws-on-front-street</link> | |
<link type="api">http://api.npr.org/query?id=290200206&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1i9DddH</link> | |
<title><![CDATA[Kevin Gates: 'I Put All My Flaws On Front Street']]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>Music Articles</slug> | |
</story> | |
<story id="289593175"> | |
<link type="html">http://www.npr.org/blogs/allsongs/2014/03/15/289593175/npr-music-at-sxsw-2014-friday</link> | |
<link type="api">http://api.npr.org/query?id=289593175&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1oMYECm</link> | |
<title><![CDATA[NPR Music At SXSW 2014: Friday]]></title> | |
<subtitle/> | |
<shortTitle><![CDATA[SXSW Friday: Old Favorites And New Obsessions]]></shortTitle> | |
<slug>All Songs Considered</slug> | |
<audio id="290401161" type="primary"> | |
<title>Listen to All Songs Considered at SXSW - Friday</title> | |
<duration>1049</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/asc/2014/03/20140314_asc_wholeshow.mp3?orgId=1&topicId=1106&aggIds=100920965,7729350</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1290401161-632f9b.m3u?orgId=1&topicId=1106&aggIds=100920965,7729350</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=290401161&type=1&mtype=WM&orgId=1&topicId=1106&aggIds=100920965,7729350</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/asc/2014/03/20140314_asc_wholeshow.3gp?orgId=1&topicId=1106&aggIds=100920965,7729350</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/asc/2014/03/20140314_asc_wholeshow.mp4?orgId=1&topicId=1106&aggIds=100920965,7729350</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/asc/2014/03/20140314_asc_wholeshow,,.mp4.csmil/master.m3u8?orgId=1&topicId=1106&aggIds=100920965,7729350</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/asc/2014/03/20140314_asc_wholeshow.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="true"/> | |
<stream allow="true"/> | |
<embed allow="true"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
</story> | |
<story id="289086799"> | |
<link type="html">http://www.npr.org/blogs/metropolis/2014/03/11/289086799/metropolis-3-8-2014</link> | |
<link type="api">http://api.npr.org/query?id=289086799&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1i3JWG6</link> | |
<title><![CDATA[Metropolis: 3/8/2014]]></title> | |
<subtitle/> | |
<shortTitle><![CDATA[New Music From Brian Eno, Girl Unit, MK And More]]></shortTitle> | |
<slug>Metropolis</slug> | |
<audio id="289148727" type="primary"> | |
<title>Metropolis: 3/8/14</title> | |
<duration>7063</duration> | |
<description>Featuring Little Dragon, Briano Eno, Tensnake and more.</description> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/specials/2014/03/20140311_specials_metropolis.mp3?orgId=55&topicId=1039</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1289148727-707887.m3u?orgId=55&topicId=1039</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=289148727&type=1&mtype=WM&orgId=55&topicId=1039</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/specials/2014/03/20140311_specials_metropolis.3gp?orgId=55&topicId=1039</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/specials/2014/03/20140311_specials_metropolis.mp4?orgId=55&topicId=1039</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/specials/2014/03/20140311_specials_metropolis,,.mp4.csmil/master.m3u8?orgId=55&topicId=1039</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/specials/2014/03/20140311_specials_metropolis.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="false"/> | |
<stream allow="true"/> | |
<embed allow="false"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
</story> | |
<story id="290106644"> | |
<link type="html">http://www.npr.org/2014/03/14/290106644/israels-orthodox-ravers-are-on-a-holy-mission-to-dance</link> | |
<link type="api">http://api.npr.org/query?id=290106644&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1i9pzYh</link> | |
<title><![CDATA[Israel's Orthodox Ravers Are On A Holy Mission To Dance]]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>Music News</slug> | |
<show> | |
<program id="2" code="ATC">All Things Considered</program> | |
<showDate>Fri, 14 Mar 2014 16:00:00 -0400</showDate> | |
<segNum>10</segNum> | |
</show> | |
<audio id="290242510" type="primary"> | |
<title/> | |
<duration>328</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/atc/2014/03/20140314_atc_israels_orthodox_ravers_are_on_a_holy_mission_to_dance.mp3?orgId=1&topicId=1106</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1290242510-664d80.m3u?orgId=1&topicId=1106</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=290242510&type=1&mtype=WM&orgId=1&topicId=1106</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/atc/2014/03/20140314_atc_israels_orthodox_ravers_are_on_a_holy_mission_to_dance.3gp?orgId=1&topicId=1106</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/atc/2014/03/20140314_atc_israels_orthodox_ravers_are_on_a_holy_mission_to_dance.mp4?orgId=1&topicId=1106</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/atc/2014/03/20140314_atc_israels_orthodox_ravers_are_on_a_holy_mission_to_dance,,.mp4.csmil/master.m3u8?orgId=1&topicId=1106</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/atc/2014/03/20140314_atc_israels_orthodox_ravers_are_on_a_holy_mission_to_dance.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="true"/> | |
<stream allow="true"/> | |
<embed allow="true"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
</story> | |
<story id="286897935"> | |
<link type="html">http://www.npr.org/2014/03/09/286897935/putting-a-name-and-face-to-a-famous-voice</link> | |
<link type="api">http://api.npr.org/query?id=286897935&apiKey=MDAzMzQ2MjAyMDEyMzk4MTU1MDg3ZmM3MQ010</link> | |
<link type="short">http://n.pr/1gVB3w7</link> | |
<title><![CDATA[Putting A Name And Face To A Famous Voice]]></title> | |
<subtitle/> | |
<shortTitle/> | |
<slug>Music Interviews</slug> | |
<show> | |
<program id="2" code="ATC">All Things Considered</program> | |
<showDate>Sat, 08 Mar 2014 17:00:00 -0500</showDate> | |
<segNum>10</segNum> | |
</show> | |
<audio id="287869196" type="primary"> | |
<title/> | |
<duration>478</duration> | |
<description/> | |
<format> | |
<mp3 type="mp3" method="fms">http://pd.npr.org/anon.npr-mp3/npr/atc/2014/03/20140308_atc_a_voice_more_famous_than_the_singer_who_owns_it.mp3?orgId=1&topicId=1105</mp3> | |
<mp3 type="m3u" method="fms">http://api.npr.org/m3u/1287869196-0022bd.m3u?orgId=1&topicId=1105</mp3> | |
<wm>http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=287869196&type=1&mtype=WM&orgId=1&topicId=1105</wm> | |
<threegp>http://pd.npr.org/npr-3gp/npr/atc/2014/03/20140308_atc_a_voice_more_famous_than_the_singer_who_owns_it.3gp?orgId=1&topicId=1105</threegp> | |
<mp4>http://pd.npr.org/npr-mp4/npr/atc/2014/03/20140308_atc_a_voice_more_famous_than_the_singer_who_owns_it.mp4?orgId=1&topicId=1105</mp4> | |
<hls>http://ivideo-i.akamaihd.net/i/npr-mp4/npr/atc/2014/03/20140308_atc_a_voice_more_famous_than_the_singer_who_owns_it,,.mp4.csmil/master.m3u8?orgId=1&topicId=1105</hls> | |
<mediastream>rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/atc/2014/03/20140308_atc_a_voice_more_famous_than_the_singer_who_owns_it.mp3</mediastream> | |
</format> | |
<rightsHolder/> | |
<permissions> | |
<download allow="true"/> | |
<stream allow="true"/> | |
<embed allow="true"/> | |
</permissions> | |
<stream active="false"/> | |
</audio> | |
</story> | |
</list> | |
</nprml> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment