Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/data/data/com.termux/files/usr/bin/bash echo echo -e "\033[1;93m ...DESCARGA DE AUDIO Y VIDEO..."
- echo
- echo -e "\033[0;37m\033[1;36m..::Creador: Sr Deriams Informático::.."
- echo -e "\033[1;93m .::Alias: SrMomo::."
- echo -e "\033[1;37m ..::Seleccione el formato del Video::..\033[1;36m"
- echo
- echo -e "\033[0;37m\033[1;37m➥ Audio\033[1;36m ⊷ mp3 precione [1]"
- echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 360p presione [2]"
- echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 480p presione [3]"
- echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 720p presione [4]"
- echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 1080p presione [5]"
- echo
- echo -e "\033[1;37m.:Para salir de mi platafora precione el signo: Ctrl + c\033[1;36m"
- echo
- command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube-SrMomo/%(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<=360]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "3" ]
- then
- echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "4" ]
- then
- echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "5" ]
- then
- echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement