Podcast xml parsing

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
t-bon3
Posts: 1
Joined: Thu Jan 01, 2015 1:40 pm

Podcast xml parsing

Post by t-bon3 »

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

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
Post Reply