diff --git a/blackhole.py b/blackhole.py index d0be416..1778eca 100644 --- a/blackhole.py +++ b/blackhole.py @@ -334,7 +334,7 @@ def print(*values: object): torrentHash = torrent.getHash() history = await asyncio.to_thread(arr.getHistory, blackhole['historyPageSize']) - items = [item for item in history if(item.torrentInfoHash and item.torrentInfoHash.casefold() == torrentHash.casefold()) or cleanFileName(item.sourceTitle.casefold()) == torrent.file.fileInfo.filenameWithoutExt.casefold()] + items = [item for item in history if (item.torrentInfoHash and item.torrentInfoHash.casefold() == torrentHash.casefold()) or cleanFileName(item.sourceTitle.casefold()) == torrent.file.fileInfo.filenameWithoutExt.casefold()] if not items: message = "No history items found to mark as failed. Arr will not attempt to grab an alternative." print(message)