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
|
||||
self.trackers = []
|
||||
# Create a list of trackers
|
||||
for value in self.handle.trackers():
|
||||
if lt.version_minor < 15:
|
||||
tracker = {}
|
||||
tracker["url"] = value.url
|
||||
tracker["tier"] = value.tier
|
||||
else:
|
||||
tracker = value
|
||||
for tracker in self.handle.trackers():
|
||||
self.trackers.append(tracker)
|
||||
|
||||
# Various torrent options
|
||||
|
|
Loading…
Reference in New Issue