Merge pull request #652 from WithdewHua/fix-torrentremover

This commit is contained in:
jxxghp 2023-09-22 22:45:17 +08:00 committed by GitHub
commit c34475653f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -644,7 +644,7 @@ class TorrentRemover(_PluginBase):
return None return None
if self._torrentstates and torrent.state not in self._torrentstates: if self._torrentstates and torrent.state not in self._torrentstates:
return None return None
if self._torrentcategorys and torrent.category not in self._torrentcategorys: if self._torrentcategorys and torrent.category and torrent.category not in self._torrentcategorys:
return None return None
return { return {
"id": torrent.hash, "id": torrent.hash,