32 lines
567 B
Bash
Executable File
32 lines
567 B
Bash
Executable File
# faux show downloader
|
|
|
|
HDvideo="http://www.podtrac.com/pts/redirect.mp4/201401.jb-dl.cdn.scaleengine.net/fauxshow/2014/fauxshow-ep161.mp4"
|
|
MP3audio="http://www.podtrac.com/pts/redirect.mp3/traffic.libsyn.com/jupiterbroadcasting/fauxshow-ep161-mp3.mp3"
|
|
|
|
|
|
destDIR="/home/$USER/syncs/fauxshow/"
|
|
|
|
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}*.mp4
|
|
|
|
wget ${HDvideo} -P ${destDIR}
|
|
|
|
wget ${MP3audio} -P ${destDIR}
|
|
|
|
|
|
|
|
}
|
|
|
|
chkDIR
|