mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-15 23:08:41 +00:00
keyword search includes trcker status
This commit is contained in:
parent
03d1177085
commit
352427ca20
1 changed files with 6 additions and 1 deletions
|
@ -43,8 +43,13 @@ def filter_keyword(torrent_ids, values):
|
||||||
#filter:
|
#filter:
|
||||||
for keyword in keywords:
|
for keyword in keywords:
|
||||||
for torrent_id in torrent_ids:
|
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
|
yield torrent_id
|
||||||
|
#i want to find broken torrents.
|
||||||
|
elif keyword in torrent.tracker_status.lower():
|
||||||
|
yield torrent_id
|
||||||
|
|
||||||
|
|
||||||
class FilterManager(component.Component):
|
class FilterManager(component.Component):
|
||||||
"""FilterManager
|
"""FilterManager
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue