[Core] Fix set_trackers to use lt >= 0.16 tracker format

This commit is contained in:
Calum Lind 2015-08-22 15:39:22 +01:00
parent a36d1f6219
commit 81b3c69465
1 changed files with 1 additions and 7 deletions

View File

@ -560,13 +560,7 @@ class Torrent(object):
trackers (list of dicts): A list of trackers. trackers (list of dicts): A list of trackers.
""" """
if trackers is None: if trackers is None:
trackers = [] self.trackers = [tracker for tracker in self.handle.trackers()]
for value in self.handle.trackers():
tracker = {}
tracker["url"] = value.url
tracker["tier"] = value.tier
trackers.append(tracker)
self.trackers = trackers
self.tracker_host = None self.tracker_host = None
return return