-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2015-03-11 04:07, Patrick Dailey wrote:
> The next HPR_AudioBookClub will be April 14 8:00PM
> 
> Instead of an audiobook, we are reviewing an episodic Fan Fic series
> this time. The series is the first nine episodes of Star Trek:
> Continuing Mission found at-
> http://www.startrekcontinuingmission.com/#episodes
> Please join us via Mumble at:
> server: ch1.teamspeak.cc <http://ch1.teamspeak.cc>
> port: 64747
> 
> -- 
> Thank You,
> pokey
> 
> 
> _______________________________________________
> Hpr mailing list
> Hpr@hackerpublicradio.org
> http://hackerpublicradio.org/mailman/listinfo/hpr_hackerpublicradio.org
> 

Hi All,

Thanks to the good folks over at "Star Trek: The Continuing Mission",
the RSS url is available at:
http://startrekcontinuingmission.com/sttcm.xml

I put this one liner together, with the hope that it help you download.
You will need xmlstarlet installed.

wget -O - http://startrekcontinuingmission.com/sttcm.xml | xmlstarlet
sel -T -t -m '/rss/channel/item' -v 'concat(pubDate, "_HPR_",
enclosure/@url)' -n - | while read episode;do EP_URL=$(echo ${episode} |
awk -F '_HPR_' '{print $2}'); EP_NAME="sttcm_$(\date --date="$(echo
${episode} | awk -F '_HPR_' '{print $1}' )" -u
+%Y-%m-%d_%H-%M-%SZ)_$(basename ${EP_URL})";  wget -O "${EP_NAME}"
"${EP_URL}";done

I deliberately made it so ugly so that the real coders out there would
get so annoyed that they would contribute a show describing what I did
wrong and how it could be improved.

- -- 
Regards,

Ken Fallon
http://kenfallon.com
http://hackerpublicradio.org/correspondents.php?hostid=30
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJVECXdAAoJECO2jUN3MRFpplgQAK5hCpMtvBFRobnthW5XSOUd
6YaTEj0VopjuSHbes3gT6wDDF4gQXroRZOtCks+5Nhzh+6k5v7ktEUjKaGbdp7+7
hk26VOr7SIU7H1pCFpwMQbRqX+7yNKjUHOCC7YsN5YcL/ZU+lwMGwiB377G0lHPc
5pha3uDw47pz7sIEOnmATbTwIPzkLJR6BaOS9olbZGxiC0uDgScb05XXv+fJxg/1
bPxzb05bc8CaXy0PdU+x21c4pPRBWUal633WVEmctaihwTI+6Yjy+30jVsZvLyVF
DyH2ZCsvCdwrrzFd84rPrSqGQp63HhZTsuQm/WKnL4CgyLuw3lGlz/KvJiyuiwPA
2F3eINzTLt6xHEC621qvB67fcOjHVE5d9ay0uspOzGM/FhDAQ7Diq70umMG3GNoe
IWoEbpeHtTvtCXNywMd31hL3zf+9FrhP9vWyh+3H2sVyoke3eTJQwljQ7nUx36+Z
5whx3bze46dZqVTmnXpRg6P6BuCOpwSxf2bl4Y8WE9xF4t0V3+Y2vriS/yL2t4wa
pBS2x317SlhWUOwKS7zHkZicgw+aMNU1SQ9J8J0SAIHH0e3YbAynkAYxlJLCPZZz
3iDJm2HEcWD3VEz+6I1B3TB7erj4Wh4g/ABUHS5HDww6GjqapnWs1O4wxSe72t1/
EnpHz3OCloxpdP/Mgm5Z
=cYeR
-----END PGP SIGNATURE-----

_______________________________________________
Hpr mailing list
Hpr@hackerpublicradio.org
http://hackerpublicradio.org/mailman/listinfo/hpr_hackerpublicradio.org

Reply via email to