Fix upgrading from 0.5.x state where torrents would have no trackers

This commit is contained in:
Andrew Resch 2008-09-21 01:38:43 +00:00
parent 68974ff459
commit ec180b3735

View File

@ -290,7 +290,14 @@ class Torrent:
"""Sets trackers"""
if trackers == None:
trackers = []
for value in self.handle.trackers():
tracker = {}
tracker["url"] = value.url
tracker["tier"] = value.tier
trackers.append(tracker)
self.trackers = trackers
return
log.debug("Setting trackers for %s: %s", self.torrent_id, trackers)
tracker_list = []