Created
December 10, 2014 15:26
-
-
Save asauber/b341ab7f2011eb75db43 to your computer and use it in GitHub Desktop.
Download all FLOSS Weekly episodes, in reverse order, skipping those that are already downloaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget_floss_n () { | |
floss_number=$(printf "%04d\n" $1) | |
wget -nc http://www.podtrac.com/pts/redirect.mp3/twit.cachefly.net/audio/floss/floss$floss_number/floss$floss_number.mp3 | |
} | |
latest_show=$(wget http://twit.tv/show/floss-weekly -O - | grep "show-title" | egrep -o "\d+" | sort -ru | head -n 1) | |
for n in $(seq $latest_show -1 1) | |
do | |
wget_floss_n $n | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment