diff --git a/main.py b/main.py index 286f7c6..0faec37 100644 --- a/main.py +++ b/main.py @@ -202,6 +202,7 @@ async def main(): privateDowloadIDs = [] if settings_dict['QBITTORRENT_URL']: protectedDowloadItems = await rest_get(settings_dict['QBITTORRENT_URL']+'/torrents/info',params={'tag': settings_dict['NO_STALLED_REMOVAL_QBIT_TAG']}, cookies=settings_dict['QBIT_COOKIE'] ) + logger.debug('main/protectedDowloadItems: %s', str(protectedDowloadItems)) protectedDownloadIDs = [str.upper(item['hash']) for item in protectedDowloadItems] if settings_dict['IGNORE_PRIVATE_TRACKERS']: privateDowloadItems = await rest_get(settings_dict['QBITTORRENT_URL']+'/torrents/info',params={}, cookies=settings_dict['QBIT_COOKIE'] ) diff --git a/src/utils/shared.py b/src/utils/shared.py index 08c9529..380bbb8 100644 --- a/src/utils/shared.py +++ b/src/utils/shared.py @@ -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