Advertisement
Guest User

Untitled

a guest
May 25th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. #!/usr/bin/bash
  2. #Note:
  3. #jangan ganti Author hargai creator cape loh buatnya!
  4.  
  5. bi='\033[34;1m'
  6. i='\033[32;1m'
  7. pur='\033[35;1m'
  8. pu='\033[37;1m'
  9.  
  10. clear
  11. echo
  12. echo -e $bi",==========================,"
  13. echo -e $i"|$pu Author$pu : Edi$i |"
  14. echo -e $i"|$pu facebook$pu : Edi Garsell$i |"
  15. echo -e $i"|$pu Youtube$pu : Edi Garsell$i |"
  16. echo -e $bi"'=========================='"
  17. echo
  18. echo -e $bi"==========================="
  19. echo -e $i"==> Menu:"
  20. echo -e $bi"==========================="
  21. echo -e $pu"["$pur"1"$pu]"$i" "Music"
  22. echo -e $pu"["$pur"2"$pu]"$i" "Video 144"
  23. echo -e $pu"["$pur"3"$pu]"$i" "Video 240"
  24. echo -e $pu"["$pur"4"$pu]"$i" "Video 360"
  25. echo -e $pu"["$pur"5"$pu]"$i" "Video 480"
  26. echo -e $pu"["$pur"6"$pu]"$i" "Video 720"
  27. echo -e $pu"["$pur"7"$pu]"$i" "Video 1080"
  28. echo -e $bi"==========================="
  29. echo -e $pu"=> Masukkan pilihan Anda:"
  30.  
  31. command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/youtube/%(title)s.%(ext)s -f'
  32. read option
  33.  
  34. if [ "$option" -eq "1" ]
  35. then
  36. echo "$command 140" > ~/.config/youtube-dl/config
  37. youtube-dl $1
  38.  
  39. elif [ "$option" -eq "2" ]
  40. then
  41. echo "$command \"best[height<=144]\"" > ~/.config/youtube-dl/config
  42. youtube-dl $1
  43.  
  44. elif [ "$option" -eq "3" ]
  45. then
  46. echo "$command \"best[height<=240]\"" > ~/.config/youtube-dl/config
  47. youtube-dl $1
  48.  
  49. elif [ "$option" -eq "4" ]
  50. then
  51. echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config
  52. youtube-dl $1
  53.  
  54. elif [ "$option" -eq "5" ]
  55. then
  56. echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
  57. youtube-dl $1
  58.  
  59. elif [ "$option" -eq "6" ]
  60. then
  61. echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
  62. youtube-dl $1
  63.  
  64. elif [ "$option" -eq "7" ]
  65. then
  66. echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
  67. youtube-dl $1
  68. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement