Youtube Download Bash Script

#!/bin/bash
 
function mp3(){
echo "donwload by Sincan2 2014"
read link
sleep 1
youtube-dl $link -t -x --audio-format "mp3"
mv *.mp3 /home/sincan2/mp3
chown -R sincan2:sincan2 /home/sincan2/mp3
exit 0
}
 
function ytuser(){
echo "Download Userna Youtube COK!"
read username
youtube-dl -citw ytuser:$username
exit 0
}
 
function singleVid(){
echo "Download This BY Sincan22014"
read link
youtube-dl $link --max-quality "mp4" -t
mv *.mp3 /home/sincan2/mp3
chown -R sincan2:sincan2 /home/sincan2/mp3
exit 0
}
 
function req(){
cat << !
 
 
ALL BY Sincan2 2014
 
 
!
}
 
while : #loop
do
cat << !
R U N M E N U
 
1. Download mp3
2. Download Masukkan youtube-user
3. Download single Youtube Video in mp4-format
4. quit
5. requirements
!
 
echo -n " Your choice? : "
read choice
 
case $choice in
1) mp3 ;;
2) ytuser ;;
3) singleVid ;;
4) exit ;;
5) req ;;
*) echo ""$choice" is not valid"; sleep 2;;
esac
done