Author: damoxc

Revision: 6051

Log:
        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

Diff:
Modified: branches/1.2_RC/ChangeLog
===================================================================
--- branches/1.2_RC/ChangeLog   2009-12-20 09:01:07 UTC (rev 6050)
+++ branches/1.2_RC/ChangeLog   2009-12-21 10:26:50 UTC (rev 6051)
@@ -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

Modified: branches/1.2_RC/deluge/core/filtermanager.py
===================================================================
--- branches/1.2_RC/deluge/core/filtermanager.py        2009-12-20 09:01:07 UTC 
(rev 6050)
+++ branches/1.2_RC/deluge/core/filtermanager.py        2009-12-21 10:26:50 UTC 
(rev 6051)
@@ -84,7 +84,7 @@
     # 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
 

Modified: trunk/deluge/core/filtermanager.py
===================================================================
--- trunk/deluge/core/filtermanager.py  2009-12-20 09:01:07 UTC (rev 6050)
+++ trunk/deluge/core/filtermanager.py  2009-12-21 10:26:50 UTC (rev 6051)
@@ -84,7 +84,7 @@
     # 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
 


--

You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to