From ff087d133c5286e5eec234d465376746b4c4e5e0 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 4 Jul 2011 14:30:55 +0100 Subject: [PATCH] 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 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf737284e..b13fd92b9 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 d3ad27c1b..110443f0d 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