jb-templates/sh/bsdnow.sh

35 lines
694 B
Bash
Executable File

# BSD Now downloader
HDvideo="http://www.podtrac.com/pts/redirect.mp4/201402.jb-dl.cdn.scaleengine.net/bsdnow/2014/bsd-0023.mp4"
MP3audio="http://www.podtrac.com/pts/redirect.mp3/traffic.libsyn.com/jbmirror/bsd-0023-mp3.mp3"
OGGaudio="http://www.podtrac.com/pts/redirect.ogg/traffic.libsyn.com/jbmirror/bsd-0023-ogg.ogg"
destDIR="/home/$USER/syncs/bsdnow/"
function chkDIR(){
if [ ! -d ${destDIR} ];then
mkdir ${destDIR}
elif [ -d ${destDIR} ];then
main
fi
}
function main(){
rm -v -R ${destDIR}*.mp3
rm -v -R ${destDIR}*.ogg
rm -v -R ${destDIR}*.mp4
wget ${HDvideo} -P ${destDIR}
wget ${MP3audio} -P ${destDIR}
wget ${OGGaudio} -P ${destDIR}
}
chkDIR