Skip to content

Instantly share code, notes, and snippets.

View Mortinat's full-sized avatar

Qstevens Mortinat

View GitHub Profile
@Mortinat
Mortinat / rm_trackers.py
Created January 17, 2022 18:00
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])