nikleechan / tracker-add

Fully automated script for adding more trackers to Transmission.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get more trackers, get more seeders, get more peers transmission Docker Pulls GitHub top language

See no peers,seeds for some torrent(s)? Add more tracker(s) for Transmission

This script automatically checks new torrents and adds trackers

FAQ:
Q: Requirements?
A: curl, transmission-remote or\and transmission-cli

Q: How often does this check for updates for new trackers?
A: Only when adding new torrent in transmission and only active torrents and gap 25 seconds

Q: Can I add tracker to a remote server?
A: Yes, host=host:port or host=http(s?)://host:port/transmission/
Changelog
Mar 10, 2020
avoid add trackers for private torrents

Mar 27, 2019
add tracker-add-auto-router.sh script for routers
now tracker file saved in tmp directory until update web source
new exception in "Get list of active torrents", helps to avoid fully loaded torrents
cosmetic fixes

Feb 22, 2019
add feature connection to host

May 27, 2018
wait new torrents 25 sec

May 26, 2018
Change systemd policy
CPUSchedulingPolicy=idle
Nice=19

Choose your destiny:

Docker way

Systemd way

Simple way (for routers)

Installation and usage

* Docker way

Take image docker pull andrewmhub/transmission-tracker-add

docker run --net=host -d -e HOSTPORT=localhost:9091 -e TR_AUTH=user:password --name=transmission-tracker-add andrewmhub/transmission-tracker-add:latest

if you need another torrent tracker list then use docker run env

-e TORRENTLIST=https://raw.githubusercontent.com/user/trackerslist/master/mylist.txt

you have transmission daemon in docker then read Docker Documentation Network

* Systemd way

Download script and make it executable:

Edit settings.json for transmission set rpc-enabled, rpc-username and rpc-password

wget --no-check-certificate -O /opt/bin/add-trackers-auto.sh https://raw.githubusercontent.com/AndrewMarchukov/tracker-add/master/tracker-add-auto.sh
wget --no-check-certificate -O /etc/systemd/system/transmission-tracker-add.service https://raw.githubusercontent.com/AndrewMarchukov/tracker-add/master/transmission-tracker-add.service
chmod +x /opt/bin/add-trackers-auto.sh

Set user and password in add-trackers-auto.sh

systemctl daemon-reload
systemctl enable transmission-tracker-add.service
systemctl start transmission-tracker-add.service

systemctl status transmission-tracker-add.service
● transmission-tracker-add.service - transmission tracker add
   Loaded: loaded (/etc/systemd/system/transmission-tracker-add.service; enabled; vendor preset: enabled)
   Active: active (running) since; 0 days ago
 Main PID: 19102 (add_trackers_au)
   CGroup: /system.slice/transmission-tracker-add.service
           ├─19102 /bin/bash /opt/bin/add-trackers-auto.sh
           └─31204 sleep 5

* Simple way (for routers)

Requirements: curl, transmission-remote

Download script and make it executable:

Edit settings for transmission set rpc-enabled, rpc-username, rpc-password and your pt trackers

wget --no-check-certificate -O tracker-add-auto-router.sh https://raw.githubusercontent.com/AndrewMarchukov/tracker-add/master/tracker-add-auto-router.sh
chmod +x tracker-add-auto-router.sh

Set user and password in tracker-add-auto-router.sh

./tracker-add-auto-router.sh &

or

nohup ./tracker-add-auto-router.sh </dev/null >/var/log/tracker-add-auto.log 2>&1 &

or

screen -d -m -S tracker-add-auto path/to/tracker-add-auto-router.sh

Extra manual script if you need

Set user and password in manual-tracker-add.sh

Run manual script to add some more trackers for active torrents:

/opt/bin # ./manual-tracker-add.sh
URL for https://hastebin.com/raw/bererufibu
Adding trackers for Film.HDRip.AVC.mkv...

######################################################################## 100,0%
* http://tracker.dutchtracking.nl:80/announce... failed.
* http://tracker.edoardocolombo.eu:6969/announce... failed.
* http://tracker.ex.ua:80/announce... failed.
* http://tracker.kicks-ass.net:80/announce... failed.
* http://tracker.mg64.net:6881/announce... done.
* http://tracker.tfile.me/announce... failed.
* http://tracker1.wasabii.com.tw:6969/announce... done.
* http://tracker2.itzmx.com:6961/announce... done.

Don't be confused with failed message. In most cases, it means tracker(s) already added and/or exists in current torrent.

About

Fully automated script for adding more trackers to Transmission.


Languages

Language:Shell 100.0%