Skip to content

Commit

Permalink
Change tracker source
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TERX committed Nov 24, 2019
1 parent ac1d88d commit 4d45165
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tracker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
#=================================================
# Description: Get trackers and add to aria2.conf
# Lisence: MIT
# Version: 1.0
# Version: 1.1
# Author: P3TERX
# Blog: https://p3terx.com
#=================================================
INFO="[\033[32mINFO\033[0m]"
ERROR="[\033[31mERROR\033[0m]"
echo && echo -e "$INFO Get trackers ..."
aria2_conf=${1:-aria2.conf}
tracker=$(curl -fLs https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt | awk NF | sed ":a;N;s/\n/,/g;ta")
# https://github.com/ngosang/trackerslist
#tracker=$(wget -qO- https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt | awk NF | sed ":a;N;s/\n/,/g;ta")
# https://github.com/XIU2/TrackersListCollection
tracker=$(wget -qO- https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt | awk NF | sed ":a;N;s/\n/,/g;ta")
[ -z $tracker ] && echo -e "
$ERROR Unable to get trackers, network failure or invalid links." && exit 1
echo -e "
Expand Down

0 comments on commit 4d45165

Please sign in to comment.