Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. echo "SELECT OPTION"
  2. echo "======================"
  3. echo "0. Detect Format..."
  4. echo "1. Audio Only (m4a)"
  5. echo "2. 360p"
  6. echo "3. 480p"
  7. echo "4. 720p"
  8. echo "5. 1080p"
  9. echo "6. 1440p (2K)"
  10. echo "7. 2160p (4K)"
  11. echo "8. 4320p (8K)"
  12. echo "======================"
  13. echo ""
  14.  
  15. command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Movies/%(title)s.%(ext)s -f'
  16. read option
  17.  
  18. if [ "$option" -eq "0" ]
  19. then
  20. echo "$command -F" > ~/.config/youtube-dl/config
  21. youtube-dl $1
  22.  
  23. elif [ "$option" -eq "1" ]
  24. then
  25. echo "$command 140" > ~/.config/youtube-dl/config
  26. youtube-dl $1
  27.  
  28. elif [ "$option" -eq "2" ]
  29. then
  30. echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config
  31. youtube-dl $1
  32.  
  33. elif [ "$option" -eq "3" ]
  34. then
  35. echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
  36. youtube-dl $1
  37.  
  38. elif [ "$option" -eq "4" ]
  39. then
  40. echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
  41. youtube-dl $1
  42.  
  43. elif [ "$option" -eq "5" ]
  44. then
  45. echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
  46. youtube-dl $1
  47.  
  48. elif [ "$option" -eq "6" ]
  49. then
  50. echo "$command \"best[height<=1440]\"" > ~/.config/youtube-dl/config
  51. youtube-dl $1
  52.  
  53. elif [ "$option" -eq "7" ]
  54. then
  55. echo "$command \"best[height<=2160]\"" > ~/.config/youtube-dl/config
  56. youtube-dl $1
  57.  
  58. elif [ "$option" -eq "8" ]
  59. then
  60. echo "$command \"best[height<=2160]\"" > ~/.config/youtube-dl/config
  61. youtube-dl $1
  62. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement