Skip to content

Commit a4ad0ac

Browse files
committed
do some change to use transmision_rpc 4.0(pre release)
1 parent 9361e6c commit a4ad0ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

transmission-trackers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
import sys, os, time, socket
8383
try:
84-
from transmissionrpc import Client
84+
from transmission_rpc import Client
8585
if 'host' in client:
8686
client['address'] = client['host']
8787
del client['host']
@@ -237,14 +237,13 @@ def readLocalLists():
237237
if config['status_filter'] and not t.status in config['status_filter']:
238238
dbg('{}: skipping due to status filter'.format(t.name))
239239
continue
240-
if t.isPrivate:
240+
if t.is_private:
241241
dbg('{}: skipping private torrent'.format(t.name))
242242
continue
243243

244244
ttrk = set(())
245245
for trk in t.trackers:
246-
ttrk.add(trk['announce'])
247-
246+
ttrk.add(trk.announce)
248247
diff = trackers - ttrk
249248

250249
if diff:

0 commit comments

Comments
 (0)