diff options
author | Damien Churchill <damoc@gmail.com> | 2009-12-21 10:26:50 +0000 |
---|---|---|
committer | Damien Churchill <damoc@gmail.com> | 2009-12-21 10:26:50 +0000 |
commit | b2990e89cb19d79718b8bc0672534c4923efa9ee (patch) | |
tree | d47f62cddccc5fcee3d89a268be4db1fb0b423bd | |
parent | 7ebe07db15f607d8810dc2a25b9b8c2fd0b84d25 (diff) | |
download | deluge-b2990e89cb19d79718b8bc0672534c4923efa9ee.tar.gz deluge-b2990e89cb19d79718b8bc0672534c4923efa9ee.tar.bz2 deluge-b2990e89cb19d79718b8bc0672534c4923efa9ee.zip |
fix filtering on the tracker host, use `==` rather than `in` so tracker urls that contain another trackers url within them aren't picked up as well
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | deluge/core/filtermanager.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ === Deluge 1.2.0_rc6 (In Development) === ==== Core ==== * Fix file renaming + * Fix tracker host filtering (Closes #1106) ==== GtkUI ==== * Fix #1104, #735 use path.utf-8 if available diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py index 3287af0c8..fcb5e96e3 100644 --- a/deluge/core/filtermanager.py +++ b/deluge/core/filtermanager.py @@ -84,7 +84,7 @@ def tracker_error_filter(torrent_ids, values): # If this is a tracker_host, then we need to filter on it if values[0] != "Error": for torrent_id in torrent_ids: - if values[0] in tm[torrent_id].get_status(["tracker_host"])["tracker_host"]: + if values[0] == tm[torrent_id].get_status(["tracker_host"])["tracker_host"]: filtered_torrent_ids.append(torrent_id) return filtered_torrent_ids |