forked from arshsisodiya/helios-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aria.sh
executable file
·15 lines (14 loc) · 1.08 KB
/
aria.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if [ -z $TORRENT_TIMEOUT ]
then
TORRENT_TIMEOUT=0
fi
tracker_list=$(curl -Ns https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt https://ngosang.github.io/trackerslist/trackers_all_http.txt https://newtrackon.com/api/all https://raw.githubusercontent.com/hezhijie0327/Trackerslist/main/trackerslist_tracker.txt | awk '$0' | tr '\n\n' ',')
aria2c --enable-rpc=true --check-certificate=false --daemon=true \
--max-connection-per-server=10 --rpc-max-request-size=1024M --quiet=true \
--bt-stop-timeout=$TORRENT_TIMEOUT --min-split-size=10M --split=10 --allow-overwrite=true \
--max-overall-download-limit=0 --bt-tracker="[$tracker_list]" --disk-cache=32M \
--max-overall-upload-limit=1K --max-concurrent-downloads=15 --summary-interval=0 \
--peer-id-prefix=-qB4420- --user-agent=Wget/1.12 --peer-agent=qBittorrent/4.4.2 \
--bt-enable-lpd=true --seed-time=0 --max-file-not-found=0 --max-tries=20 \
--auto-file-renaming=true --reuse-uri=true --http-accept-gzip=true --continue=true \
--content-disposition-default-utf8=true --netrc-path=/usr/src/app/.netrc