forked from khansaad1275/Termux-YTD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtermux-url-opener
47 lines (40 loc) · 2.08 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
#!/data/data/com.termux/files/usr/bin/bash
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 : 🆃🅴🆁🅼🆄🆇-🆈🆃🅳™ ║"
echo -e "\e[032m" "║ ♚ Author : KhanSaad1275 ║"
echo -e "\e[032m" "║ ♚ Github : g̲i̲t̲h̲u̲b̲.̲c̲o̲m̲/̲k̲h̲a̲n̲s̲a̲a̲d̲1̲2̲7̲5̲/̲ ║"
echo -e "\e[032m" "║ ♚ Website : www.LearnTermux.tech ║"
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"
command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -f'
read -p " ╚═➤ " option
if [ "$option" -eq "1" ]
then
echo "$command 140" > ~/.config/youtube-dl/config
youtube-dl $1
elif [ "$option" -eq "2" ]
then
echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config
youtube-dl $1
elif [ "$option" -eq "3" ]
then
echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
youtube-dl $1
elif [ "$option" -eq "4" ]
then
echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
youtube-dl $1
elif [ "$option" -eq "5" ]
then
echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
youtube-dl $1
fi