jb-templates/sh/scibyte.sh

38 lines
781 B
Bash
Executable File

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