From c7d52f3ce53416eff09803e47045500325644046 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 21 Dec 2009 10:26:50 +0000 Subject: [PATCH] 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 --- deluge/core/filtermanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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