Created
January 17, 2022 18:00
-
-
Save Mortinat/4d77ceb7a7e5b4be331bc7f458323cd4 to your computer and use it in GitHub Desktop.
Remove automatically trackers (transmission)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from transmission_rpc import Client | |
c = Client(host='localhost', port=9091, username='username', password='password') | |
while True: | |
list_torrents = c.get_torrents() | |
for torrent in list_torrents: | |
if torrent.status == "downloading": | |
if torrent.trackers != []: | |
c.change_torrent(torrent.id, trackerRemove=[tracker['id'] for tracker in torrent.trackers]) | |
time.sleep(30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment