mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[#2236] [Core] Fix filter keyerror removing plugin
This commit is contained in:
parent
f131194b75
commit
542e028977
1 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,9 @@ class FilterManager(component.Component):
|
|||
for torrent_id in list(torrent_ids):
|
||||
status = status_func(torrent_id, filter_dict.keys()) #status={key:value}
|
||||
for field, values in filter_dict.iteritems():
|
||||
if (not status[field] in values) and torrent_id in torrent_ids:
|
||||
if field in status and status[field] in values:
|
||||
continue
|
||||
elif torrent_id in torrent_ids:
|
||||
torrent_ids.remove(torrent_id)
|
||||
|
||||
return torrent_ids
|
||||
|
|
Loading…
Add table
Reference in a new issue