This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtermux-url-opener
68 lines (62 loc) · 3 KB
/
termux-url-opener
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/data/data/com.termux/files/usr/bin/bash
clear
kill_color=$'\e[0m'
command -v youtube-dl &>/dev/null || printf "\e[031m Please install Youtube-dl manualy or run the the install.sh script again.\n$kill_color"
echo -e "\e[031m" "██╗░░░██╗████████╗░░░░░░██████╗░██╗░░░░░"
echo -e "\e[031m" "╚██╗░██╔╝╚══██╔══╝░░░░░░██╔══██╗██║░░░░░"
echo -e "\e[031m" "░╚████╔╝░░░░██║░░░█████╗██║░░██║██║░░░░░"
echo -e "\e[031m" "░░╚██╔╝░░░░░██║░░░╚════╝██║░░██║██║░░░░░"
echo -e "\e[031m" "░░░██║░░░░░░██║░░░░░░░░░██████╔╝███████╗"
echo -e "\e[031m" "░░░╚═╝░░░░░░╚═╝░░░░░░░░░╚═════╝░╚══════╝"
echo -e "\e[036m" "╔════════════════════════════════════════╗"
echo -e "\e[032m" "║ ♚ Project Name : Tᴇʀᴍᴜx-YT-Dᴏᴡɴʟᴏᴀᴅᴇʀ ║"
echo -e "\e[032m" "║ ♚ Author : saifalisew1508 ║"
echo -e "\e[032m" "║ ♚ Github : g̲i̲t̲h̲u̲b̲.̲c̲o̲m̲/̲saifalisew1508 ║"
echo -e "\e[032m" "║ ♚ Email : [email protected] ║"
echo -e "\e[036m" "╠════════════════════════════════════════╝"
echo -e "\e[036m" "╠═▶ [𝗦𝗲𝗹𝗲𝗰𝘁 𝗔 𝗙𝗼𝗿𝗺𝗮𝘁] ➳"
echo -e "\e[032m" "╠═▶ 1. Music Mp3♫"
echo -e "\e[032m" "╠═▶ 2. Video 360p"
echo -e "\e[032m" "╠═▶ 3. Video 480p"
echo -e "\e[032m" "╠═▶ 4. Video 720p"
echo -e "\e[032m" "╠═▶ 5. Video 1080p"
echo -e "\e[032m" "╠═▶ 6. Video 2160p"
echo -e "\e[032m" "╠═▶ 7. Exit Termux-YT-Downloader" # Added
command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -i -f'
printf "\e[032m ╚═:➤ $kill_color"
read option
if [[ -z $option ]];
then
clear
printf "\e[031m Please choose a option!\n$kill_color"
else
case $option in #Make Case list
1)
echo "$command 140" > ~/.config/youtube-dl/config #option 1
youtube-dl $1
;;
2)
echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config #option 2
youtube-dl $1
;;
3)
echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config #option 3
youtube-dl $1
;;
4)
echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config #option 4
youtube-dl $1
;;
5)
echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config #option 5
youtube-dl $1
;;
6)
echo "$command \"best[height<=2160]\"" > ~/.config/youtube-dl/config
youtube-dl $1
;;
7)
break
;;
esac
fi