Remove some backwards compatibility code for libtorrent 0.14.
This commit is contained in:
parent
b4d7e42973
commit
e79c695732
|
@ -177,13 +177,7 @@ class Torrent(object):
|
||||||
# Tracker list
|
# Tracker list
|
||||||
self.trackers = []
|
self.trackers = []
|
||||||
# Create a list of trackers
|
# Create a list of trackers
|
||||||
for value in self.handle.trackers():
|
for tracker in self.handle.trackers():
|
||||||
if lt.version_minor < 15:
|
|
||||||
tracker = {}
|
|
||||||
tracker["url"] = value.url
|
|
||||||
tracker["tier"] = value.tier
|
|
||||||
else:
|
|
||||||
tracker = value
|
|
||||||
self.trackers.append(tracker)
|
self.trackers.append(tracker)
|
||||||
|
|
||||||
# Various torrent options
|
# Various torrent options
|
||||||
|
|
Loading…
Reference in New Issue