vim aria.sh

1
2
3
4
#!/bin/bash
tracker=`curl -s -k https://ngosang.github.io/trackerslist/trackers_best.txt |awk NF|sed ":a;N;s/\n/,/g;b a"`
#echo $tracker
aria2c $* --bt-tracker=$tracker

chmod +x aria.sh

Usage: ./aria.sh [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]…