Advertisement
Guest User

Untitled

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