Additional debug information to understand why certain downloads are flagged as "not remove" eventhough no tag is set in qbit

This commit is contained in:
Benjamin Harder
2024-03-16 11:26:07 +01:00
parent 5cc25bbb92
commit 420890307a
2 changed files with 3 additions and 0 deletions

View File

@@ -23,9 +23,11 @@ def privateTrackerCheck(settings_dict, affectedItems, failType, privateDowloadID
def protectedDownloadCheck(settings_dict, affectedItems, failType, protectedDownloadIDs):
# Checks if torrent is protected and skips
logger.debug('protectedDownloadCheck/protectedDownloadIDs (failType: %s): %s', failType, str(protectedDownloadIDs))
for affectedItem in reversed(affectedItems):
if affectedItem['downloadId'] in protectedDownloadIDs:
logger.verbose('>>> Detected %s download, tagged not to be killed: %s',failType, affectedItem['title'])
logger.debug('>>> DownloadID of above %s download (%s): %s',failType, affectedItem['title'], affectedItem['downloadId'])
affectedItems.remove(affectedItem)
return affectedItems