Downloading Podcasts With CRON

I used to open iTunes so I could click the “update” button to get the latest version of a podcast. Then I got tired of waiting for iTunes and decided I could keep my podcasts updated via CRON. Here’s the script I use which should work for most podcasts with an XML feed:

wget --output-document=- --quiet | grep mp3 | head -1 | sed -e "s/^.*\(http.*mp3\).*/\1/" | wget --input-file=- --quiet --output-document /tmp/marketplace.`date +\%Y-\%m-\%d`.mp3

powered by WordPress     themed by Mukkamu     presented by     everything else by steve hulet