From ec180b37352d20843377e45bd2d0ebc46fce73fd Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 21 Sep 2008 01:38:43 +0000 Subject: [PATCH] Fix upgrading from 0.5.x state where torrents would have no trackers --- deluge/core/torrent.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 4f59ce7c1..0c0ccdbd2 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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 = []