Skip to content

Instantly share code, notes, and snippets.

@Mortinat
Created January 17, 2022 18:00
Show Gist options
  • Save Mortinat/4d77ceb7a7e5b4be331bc7f458323cd4 to your computer and use it in GitHub Desktop.
Save Mortinat/4d77ceb7a7e5b4be331bc7f458323cd4 to your computer and use it in GitHub Desktop.
Remove automatically trackers (transmission)
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