Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- #Note:
- #jangan ganti Author hargai creator cape loh buatnya!
- bi='\033[34;1m'
- i='\033[32;1m'
- pur='\033[35;1m'
- pu='\033[37;1m'
- clear
- echo
- echo -e $bi",==========================,"
- echo -e $i"|$pu Author$pu : Edi$i |"
- echo -e $i"|$pu facebook$pu : Edi Garsell$i |"
- echo -e $i"|$pu Youtube$pu : Edi Garsell$i |"
- echo -e $bi"'=========================='"
- echo
- echo -e $bi"==========================="
- echo -e $i"==> Menu:"
- echo -e $bi"==========================="
- echo -e $pu"["$pur"1"$pu]"$i" "Music"
- echo -e $pu"["$pur"2"$pu]"$i" "Video 144"
- echo -e $pu"["$pur"3"$pu]"$i" "Video 240"
- echo -e $pu"["$pur"4"$pu]"$i" "Video 360"
- echo -e $pu"["$pur"5"$pu]"$i" "Video 480"
- echo -e $pu"["$pur"6"$pu]"$i" "Video 720"
- echo -e $pu"["$pur"7"$pu]"$i" "Video 1080"
- echo -e $bi"==========================="
- echo -e $pu"=> Masukkan pilihan Anda:"
- command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/youtube/%(title)s.%(ext)s -f'
- read option
- if [ "$option" -eq "1" ]
- then
- echo "$command 140" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "2" ]
- then
- echo "$command \"best[height<=144]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "3" ]
- then
- echo "$command \"best[height<=240]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "4" ]
- then
- echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "5" ]
- then
- echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "6" ]
- then
- echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "7" ]
- then
- echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement