summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChase Sterling <chase.sterling@gmail.com>2012-12-03 01:14:17 -0500
committerChase Sterling <chase.sterling@gmail.com>2012-12-03 01:14:17 -0500
commitfc4ca861dab844dbbcf3d3ea5fc8aad98a00f14b (patch)
tree1e186d25dc4dea0b1747d3b67ca40153609a0e10
parent74d59eb6ec5d1a19bbed526d072238824a9afb14 (diff)
downloaddeluge-fc4ca861dab844dbbcf3d3ea5fc8aad98a00f14b.zip
deluge-fc4ca861dab844dbbcf3d3ea5fc8aad98a00f14b.tar.gz
deluge-fc4ca861dab844dbbcf3d3ea5fc8aad98a00f14b.tar.bz2
Fix libtorrent version check in torrent.py. fix #2223
-rw-r--r--deluge/core/torrent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index dd2fa39..f2403a6 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -174,7 +174,7 @@ class Torrent(object):
self.trackers = []
# Create a list of trackers
for value in self.handle.trackers():
- if lt.version_minor < 15:
+ if lt.version_major == 0 and lt.version_minor < 15:
tracker = {}
tracker["url"] = value.url
tracker["tier"] = value.tier