Skip to content

Fully automated script for adding more trackers to Transmission.

Notifications You must be signed in to change notification settings

xtr3mz/transmisssion-tracker-auto-add

 
 

Repository files navigation

需要有cpu对应版本的 **transmission-remote

0,将脚本另存为 addtkr.sh

1,挂载 硬盘到 /mnt/hdd

2,硬盘新建transplus文件夹,把 transmission-remote和addtkr.sh放进去,网上搜tracker,以文本存成trackers.txt(每行一个地址,不要有空白行)

3,计划任务/cron,添加 * */1 * * * /mnt/hdd/transplus/addtkr.sh>/mnt/hdd/tracker.log

注:* */1 * * * 代表每分钟执行一次

默认设置在addtkr.sh前几行,把里面

ip改成你路由ip

账号密码改成你的transmission账号密码

只需要addtkr.sh,其他文件不用下

目录:(硬盘上/mnt/hdd) /transplus /transplus/addtkr.sh /transplus/trackers.txt /transplus/transmission-remote

修改自:(原文)

Get more trackers, get more seeders, get more peers transmission

Docker Image CI Docker Pulls GitHub top language Docker Image Size (tag)

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%