Skip to content

Instantly share code, notes, and snippets.

@mlc
Created April 11, 2011 00:16
Show Gist options
  • Save mlc/912887 to your computer and use it in GitHub Desktop.
Save mlc/912887 to your computer and use it in GitHub Desktop.
Script to download This American Life episodes.
#!/bin/sh
#
# This script downloads episodes of This American Life. It is useful
# because it downloads from the server normally use for streaming
# episodes in the flash player, so you can downoad episodes that are
# newer or older than the one currently available for podcast
# listening.
#
if [[ $# -ne 1 ]]; then
echo "Please provide exactly one argument." >&2
exit 1
fi
case $1 in
[0-9] | [0-9][0-9] | [0-9][0-9][0-9])
i=$1
;;
*)
echo "Argument must be numeric." >&2
exit 1
;;
esac
set -ex
exec curl -OvL http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/${i}.mp3
@mlc
Copy link
Author

mlc commented Apr 11, 2011

I am not the first to discover this, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment