mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Fix upgrading from 0.5.x state where torrents would have no trackers
This commit is contained in:
parent
68974ff459
commit
ec180b3735
@ -290,7 +290,14 @@ class Torrent:
|
|||||||
"""Sets trackers"""
|
"""Sets trackers"""
|
||||||
if trackers == None:
|
if trackers == None:
|
||||||
trackers = []
|
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)
|
log.debug("Setting trackers for %s: %s", self.torrent_id, trackers)
|
||||||
tracker_list = []
|
tracker_list = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user