Remove some backwards compatibility code for libtorrent 0.14.

This commit is contained in:
Chase Sterling 2012-12-03 01:18:25 -05:00
parent b4d7e42973
commit e79c695732
1 changed files with 1 additions and 7 deletions

View File

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