Fix libtorrent version check in torrent.py. fix #2223

This commit is contained in:
Chase Sterling 2012-12-03 01:14:17 -05:00
parent 74d59eb6ec
commit fc4ca861da
1 changed files with 1 additions and 1 deletions

View File

@ -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