blind-oracle / transmission-trackers

Script to automatically add trackers from a list to all torrents in Transmission
115 stars 28 forks source link

trackerAdd argument is deprecated since transmission daemon 4.0.0 #18

Open benyjr opened 9 months ago

benyjr commented 9 months ago

I am getting the following error:

Shortbus (2006) [BluRay] [1080p] [YTS.AM]: Adding 1 trackers (before: 241) Traceback (most recent call last): File "/home/beny/scripts/transmission-trackers.py", line 255, in tc.change_torrent(t.id, trackerAdd=list(diff)) File "/home/beny/.local/lib/python3.12/site-packages/transmission_rpc/client.py", line 726, in change_torrent self._request(RpcMethod.TorrentSet, args, ids, True, timeout=timeout) File "/home/beny/.local/lib/python3.12/site-packages/transmission_rpc/client.py", line 287, in _request raise TransmissionError( transmission_rpc.error.TransmissionError: Query failed with result "error setting announce list".

It seems that this script will not work with Transmission 4.0.0+ as trackerAdd has been depricated in favour of trackerList which replaces all the trackers of a given torrent with a new list of trackers.