[Core] Fix set_trackers to use lt >= 0.16 tracker format
This commit is contained in:
parent
a36d1f6219
commit
81b3c69465
|
@ -560,13 +560,7 @@ class Torrent(object):
|
|||
trackers (list of dicts): A list of trackers.
|
||||
"""
|
||||
if trackers is None:
|
||||
trackers = []
|
||||
for value in self.handle.trackers():
|
||||
tracker = {}
|
||||
tracker["url"] = value.url
|
||||
tracker["tier"] = value.tier
|
||||
trackers.append(tracker)
|
||||
self.trackers = trackers
|
||||
self.trackers = [tracker for tracker in self.handle.trackers()]
|
||||
self.tracker_host = None
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue