Module: deluge
Branch: 1.3-stable
Commit: ff087d133c5286e5eec234d465376746b4c4e5e0

Author: Calum Lind <[email protected]>
Date:   Mon Jul  4 14:30:55 2011 +0100

Fix #1239: Translated Tracker Error text not counted in sidebar Error status

---

 ChangeLog                    |    1 +
 deluge/core/filtermanager.py |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bf73728..b13fd92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
        * #1504: Fix win32 running deluged as not logged in user via runas or 
service
        * #890: If added torrent already exists, append extra trackers to it
        * #1338: Fix Seeds and Peers totals not updating
+       * #1239: Fix translated Tracker Error text not counted in sidebar Error 
status
 
 ==== GtkUI ====
        * Show the checking icon for torrents in the 'Checking Resume Data' 
state
diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py
index d3ad27c..110443f 100644
--- a/deluge/core/filtermanager.py
+++ b/deluge/core/filtermanager.py
@@ -91,7 +91,7 @@ def tracker_error_filter(torrent_ids, values):
     # Check all the torrent's tracker_status for 'Error:' and only return 
torrent_ids
     # that have this substring in their tracker_status
     for torrent_id in torrent_ids:
-        if "Error:" in 
tm[torrent_id].get_status(["tracker_status"])["tracker_status"]:
+        if _("Error") + ":" in 
tm[torrent_id].get_status(["tracker_status"])["tracker_status"]:
             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