Advertisement
Guest User

Untitled

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