Advertisement
SrDeriams

Untitled

Sep 18th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. #!/data/data/com.termux/files/usr/bin/bash echo echo -e "\033[1;93m ...DESCARGA DE AUDIO Y VIDEO..."
  2. echo
  3. echo -e "\033[0;37m\033[1;36m..::Creador: Sr Deriams Informático::.."
  4. echo -e "\033[1;93m .::Alias: SrMomo::."
  5. echo -e "\033[1;37m ..::Seleccione el formato del Video::..\033[1;36m"
  6. echo
  7. echo -e "\033[0;37m\033[1;37m➥ Audio\033[1;36m ⊷ mp3 precione [1]"
  8. echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 360p presione [2]"
  9. echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 480p presione [3]"
  10. echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 720p presione [4]"
  11. echo -e "\033[0;37m\033[1;37m➥ video\033[1;36m ⊷ 1080p presione [5]"
  12. echo
  13. echo -e "\033[1;37m.:Para salir de mi platafora precione el signo: Ctrl + c\033[1;36m"
  14. echo
  15. command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube-SrMomo/%(title)s.%(ext)s -f'
  16. read option
  17.  
  18. if [ "$option" -eq "1" ]
  19. then
  20. echo "$command 140" > ~/.config/youtube-dl/config
  21. youtube-dl $1
  22. elif [ "$option" -eq "2" ]
  23. then
  24. echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config
  25. youtube-dl $1
  26.  
  27. elif [ "$option" -eq "3" ]
  28. then
  29. echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
  30. youtube-dl $1
  31.  
  32. elif [ "$option" -eq "4" ]
  33. then
  34. echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
  35. youtube-dl $1
  36.  
  37. elif [ "$option" -eq "5" ]
  38. then
  39. echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
  40. youtube-dl $1
  41. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement