summaryrefslogtreecommitdiffstats
path: root/deluge/core/filtermanager.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2011-07-04 14:30:55 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2011-07-04 21:29:58 +0100
commit9a1ae06033b056c6edf6ce0eee078dde497315ca (patch)
treead42f430b55faef5d8c61d0afa1ecd1291615105 /deluge/core/filtermanager.py
parent55f456d851ef29d472c9b3c5a780626e77605943 (diff)
downloaddeluge-9a1ae06033b.tar.gz
deluge-9a1ae06033b.tar.bz2
deluge-9a1ae06033b.zip
Fix #1239: Translated Tracker Error text not counted in sidebar Error status
Diffstat (limited to 'deluge/core/filtermanager.py')
-rw-r--r--deluge/core/filtermanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py
index a4fd54d8e..25ae4be1b 100644
--- a/deluge/core/filtermanager.py
+++ b/deluge/core/filtermanager.py
@@ -113,7 +113,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