From 352427ca20c9987da483ef8c4cdc5957db378318 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Fri, 24 Oct 2008 21:05:14 +0000 Subject: [PATCH] keyword search includes trcker status --- deluge/core/filtermanager.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deluge/core/filtermanager.py b/deluge/core/filtermanager.py index 80f6d5324..8bb4a5ddb 100644 --- a/deluge/core/filtermanager.py +++ b/deluge/core/filtermanager.py @@ -43,8 +43,13 @@ def filter_keyword(torrent_ids, values): #filter: for keyword in keywords: for torrent_id in torrent_ids: - if keyword in all_torrents[torrent_id].filename.lower(): + torrent = all_torrents[torrent_id] + if keyword in torrent.filename.lower(): yield torrent_id + #i want to find broken torrents. + elif keyword in torrent.tracker_status.lower(): + yield torrent_id + class FilterManager(component.Component): """FilterManager