jb-templates/sh/unfilter.sh

38 lines
475 B
Bash
Raw Normal View History

2014-02-09 06:32:07 -06:00
# Unfilter downloader
2014-02-09 06:59:57 -06:00
MOBILEvideo=""
MP3audio=""
OGGaudio=""
2014-02-09 06:32:07 -06:00
destDIR="/home/$USER/syncs/unfilter/"
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 ${MOBILEvideo} -P ${destDIR}
wget ${MP3audio} -P ${destDIR}
wget ${OGGaudio} -P ${destDIR}
}
chkDIR