Fix libtorrent version check in torrent.py. fix #2223
This commit is contained in:
parent
74d59eb6ec
commit
fc4ca861da
|
@ -174,7 +174,7 @@ class Torrent(object):
|
||||||
self.trackers = []
|
self.trackers = []
|
||||||
# Create a list of trackers
|
# Create a list of trackers
|
||||||
for value in self.handle.trackers():
|
for value in self.handle.trackers():
|
||||||
if lt.version_minor < 15:
|
if lt.version_major == 0 and lt.version_minor < 15:
|
||||||
tracker = {}
|
tracker = {}
|
||||||
tracker["url"] = value.url
|
tracker["url"] = value.url
|
||||||
tracker["tier"] = value.tier
|
tracker["tier"] = value.tier
|
||||||
|
|
Loading…
Reference in New Issue