Skip to content

Commit 179b3e3

Browse files
author
you-oops-dev[silent]
committed
Edit script
1 parent 9ef7857 commit 179b3e3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

youtube/downloader.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ set -x
66

77
# Add domain in ACL file
88
add_domain() {
9-
curl -4s --max-time 30 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/antonme/ipnames/refs/heads/master/dns-youtube.txt > /tmp/"$1"_domain.txt || echo "YouTube: Getting domain failed"
10-
curl -4s --max-time 30 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/bol-van/zapret-win-bundle/refs/heads/master/zapret-winws/files/list-youtube.txt >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 2 failed"
11-
curl -4s --max-time 30 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/antonme/ipnames/master/ext-dns-youtube.txt >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 3 failed"
12-
curl -4s --max-time 30 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/bol-van/zapret-win-bundle/refs/heads/master/zapret-winws/files/list-youtube.txt >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 4 failed"
13-
curl -4s --max-time 30 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/itdoginfo/allow-domains/refs/heads/main/Services/youtube.lst >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 5 failed"
9+
10+
curl -4s --max-time 90 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/antonme/ipnames/refs/heads/master/dns-youtube.txt > /tmp/"$1"_domain.txt || echo "YouTube: Getting domain failed"
11+
curl -4s --max-time 90 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/bol-van/zapret-win-bundle/refs/heads/master/zapret-winws/files/list-youtube.txt >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 2 failed"
12+
curl -4s --max-time 90 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/antonme/ipnames/master/ext-dns-youtube.txt >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 3 failed"
13+
curl -4s --max-time 90 --retry-delay 3 --retry 10 https://raw.githubusercontent.com/itdoginfo/allow-domains/refs/heads/main/Services/youtube.lst >> /tmp/"$1"_domain.txt || echo "YouTube: Getting domain 4 failed source itdoginfo"
1414

1515
echo "img.youtube.com
1616
ggpht.com
@@ -27,7 +27,8 @@ youtube.com
2727
sponsor.ajay.app
2828
sponsorblock.hankmccord.dev
2929
returnyoutubedislike.com
30-
returnyoutubedislikeapi.com" >> /tmp/"$1"_domain.txt
30+
returnyoutubedislikeapi.com
31+
music.youtube.com" >> /tmp/"$1"_domain.txt
3132
dos2unix /tmp/"$1"_domain.txt
3233
sort /tmp/"$1"_domain.txt | uniq | sponge /tmp/"$1"_domain.txt
3334
# Prepare domain

0 commit comments

Comments
 (0)