Simple Podcast-Downloader for Linux & BSD

published on on FreeBSD, Linux

During the last few months I managed to automate many recurring tasks on my NAS. One good example for those task is updating my podcast archive. I tried to accomplish this using a lightweight shell script which, running as a cronjob, would hold my podcast archive up to date and notify me about new episodes via push notifications.

Now that this script is serving for months without any problems, I published it as a Gist. It runs unmodified on any common GNU/Linux distribution as well as FreeBSD and OS X. It depends on bash, wget, sed and xargs but checks those dependencies on startup.

Just set the $PODCAST_DIR variable to your podcast folder. Then you can specify each podcast subscription in a separate line like this:

download_files_from_feed  $PODCAST_DIR/

The script downloads all episodes listed in the RSS feed to the specified target directory. Afterwards, a list of all files added within the last 24 hours is displayed.

I'm publishing this script without any license so feel free to use it in any way you want.