Podcast xml parsing
Posted: Thu Jan 01, 2015 1:52 pm
I was looking around for a way to play the latest podcast from an rss feed on my WR703N internet radio, saw the podcast-bounce solution on here but wanted something a bit simpler, so I use this in a script to pull the latest audio from a feed
This is an example for the BBC film review podcast. Thought i'd put it here for future reference. Obviously it needs packages curl and grep
This is an example for the BBC film review podcast. Thought i'd put it here for future reference. Obviously it needs packages curl and grep
Code: Select all
mpc clear
mpc add `curl -s http://downloads.bbc.co.uk/podcasts/fivelive/kermode/rss.xml | grep -o 'http://[^"]*mp3' | head -1`
mpc play