#!/bin/sh

# lugradio mirror script. Assumes you are mirroring the entire season.
# It should be relatively easy to detect the latest episode downloaded and only
# try to download the next one.

source config.sh

rm audio.lugradio.org/season${season}/index.html
wget -r -m -np -c http://audio.lugradio.org/season${season}
find audio.lugradio.org/season${season} | grep "lugradio-" | sort -n > newfiles
rm audio.lugradio.org/index.html

