Podcast xml parsing

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

Podcast xml parsing

Postby t-bon3 » 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

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

Return to “Wifi Radio Project / Hacking the Asus WL-520gU”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest