Soy_Estudiante

Untitled

May 7th, 2019 (edited)
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #!/data/data/com.termux/files/usr/bin/bash
  2.  
  3. echo "SOY ESTUDIANTE \n"
  4.  
  5. echo "Tu video se guardara en tu memoria interna-Carpeta Youtobe \n"
  6.  
  7. echo "SELECIONE EL FORMATO DEL VIDEO \n"
  8. echo "Para Audio mp3 presione 1"
  9. echo "video 360px presione 2"
  10. echo "video 480px presione 3"
  11. echo "video 720px presione 4"
  12. echo "video 1080px presione 5"
  13.  
  14. command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -f'
  15. read option
  16.  
  17. if [ "$option" -eq "1" ]
  18. then
  19. echo "$command 140" > ~/.config/youtube-dl/config
  20. youtube-dl $1
  21.  
  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
Add Comment
Please, Sign In to add comment