From 81b3c6946554bbc4a8605192f0df62a77ed1c6fe Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 22 Aug 2015 15:39:22 +0100 Subject: [PATCH] [Core] Fix set_trackers to use lt >= 0.16 tracker format --- deluge/core/torrent.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 6e0db4414..b278ea898 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -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