fix: 种子分类为空时被删除
This commit is contained in:
parent
de98ccd33c
commit
141e78f274
@ -644,7 +644,7 @@ class TorrentRemover(_PluginBase):
|
||||
return None
|
||||
if self._torrentstates and torrent.state not in self._torrentstates:
|
||||
return None
|
||||
if self._torrentcategorys and torrent.category and torrent.category not in self._torrentcategorys:
|
||||
if self._torrentcategorys and (not torrent.category or torrent.category not in self._torrentcategorys):
|
||||
return None
|
||||
return {
|
||||
"id": torrent.hash,
|
||||
|
Loading…
x
Reference in New Issue
Block a user