Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
transmissionrpc>=0.11
1 change: 1 addition & 0 deletions tracker_ipv6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://tracker.ipv6tracker.ru/announce
4 changes: 2 additions & 2 deletions transmission-trackers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Host, port, username and password to connect to Transmission
# Set user and pw to None if auth is not required
host, port, user, pw = 'localhost', 9091, 'admin', 'pwd'
host, port, user, pw = 'localhost', 9091, 'admin', 'passwd'

# Work with torrents having only these statuses.
# Can be any combination of: 'check pending', 'checking', 'downloading', 'seeding', 'stopped'
Expand All @@ -17,7 +17,7 @@
# The trackers from these lists are checked by looking up the URL's hostname in DNS.
urls = [
'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt',
# 'http://some.other.tracker.list/trackers.txt'
'https://raw.githubusercontent.com/zcq100/transmission-trackers/master/tracker_ipv6.txt',
# ...
]

Expand Down
15 changes: 15 additions & 0 deletions transmission-trackers.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=add tracker to torent
After=network.target network-online.target
Wants=network-online.target

[Service]
User=zcq100
Type=oneshot
#Your WorkingDirectory
WorkingDirectory=/docker/transmission/transmission-trackers
ExecStart=python3 transmission-trackers.py


[Install]
WantedBy=multi-user.target
10 changes: 10 additions & 0 deletions transmission-trackers.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=add trackers to torrent every 10 minutes

[Timer]
OnBootSec=0s
OnUnitActiveSec=10min
Unit=transmission-trackers.service

[Install]
WantedBy=multi-user.target