forked from iamLiquidX/MirrorX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharia.sh
More file actions
19 lines (19 loc) · 1.03 KB
/
Copy patharia.sh
File metadata and controls
19 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
file="trackers.txt"
echo "$(curl -Ns https://trackerslist.com/best_aria2.txt | awk '$1' | tr ',' '\n')" > trackers.txt
echo "$(curl -Ns https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt)" >> trackers.txt
tmp=$(sort trackers.txt | uniq) && echo "$tmp" > trackers.txt
sed -i '/^$/d' trackers.txt
sed -z -i 's/\n/,/g' trackers.txt
tracker_list=$(cat trackers.txt)
if [ -f $file ] ; then
rm $file
fi
tracker="[$tracker_list]"
export MAX_DOWNLOAD_SPEED=0
export MAX_CONCURRENT_DOWNLOADS=7
aria2c --enable-rpc --rpc-listen-all=false --rpc-listen-port 6800 \
--max-connection-per-server=16 --rpc-max-request-size=1024M \
--seed-time=0.01 --min-split-size=10M --follow-torrent=mem --split=10 \
--daemon=true --allow-overwrite=true --max-overall-download-limit=$MAX_DOWNLOAD_SPEED --bt-stop-timeout=1200 \
--max-overall-upload-limit=1K --max-concurrent-downloads=$MAX_CONCURRENT_DOWNLOADS \
--bt-tracker=$tracker --bt-max-peers=0 --peer-id-prefix=-TR2770- --user-agent=Transmission/2.77 --peer-agent=Transmission/2.77 \