mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-21 16:25:35 +02:00
Small cosmetics
This commit is contained in:
@@ -51,9 +51,9 @@ async def queueCleaner(settingsDict, arr_type, defective_tracker, download_sizes
|
||||
if not full_queue:
|
||||
logger.verbose('>>> Queue is empty.')
|
||||
return
|
||||
else:
|
||||
logger.debug('queueCleaner/full_queue at start:')
|
||||
logger.debug(full_queue)
|
||||
# else:
|
||||
# logger.debug('queueCleaner/full_queue at start:')
|
||||
# logger.debug(full_queue)
|
||||
|
||||
deleted_downloads = Deleted_Downloads([])
|
||||
items_detected = 0
|
||||
|
||||
@@ -9,9 +9,9 @@ async def remove_orphans(settingsDict, BASE_URL, API_KEY, NAME, deleted_download
|
||||
failType = 'orphan'
|
||||
full_queue = await get_queue(BASE_URL, API_KEY, params = {full_queue_param: True})
|
||||
queue = await get_queue(BASE_URL, API_KEY)
|
||||
logger.debug('remove_orphans/full queue IN: %s', str(full_queue))
|
||||
logger.debug('remove_orphans/full queue IN: %s', formattedQueueInfo(full_queue))
|
||||
if not full_queue: return 0 # By now the queue may be empty
|
||||
logger.debug('remove_orphans/queue IN: %s', str(queue))
|
||||
logger.debug('remove_orphans/queue IN: %s', formattedQueueInfo(queue))
|
||||
|
||||
# Find items affected
|
||||
# 1. create a list of the "known" queue items
|
||||
@@ -27,7 +27,7 @@ async def remove_orphans(settingsDict, BASE_URL, API_KEY, NAME, deleted_download
|
||||
doPrivateTrackerCheck = True,
|
||||
doProtectedDownloadCheck = True,
|
||||
doPermittedAttemptsCheck = False)
|
||||
logger.debug('remove_orphans/full queue OUT: %s', str(await get_queue(BASE_URL, API_KEY, params = {full_queue_param: True})))
|
||||
logger.debug('remove_orphans/full queue OUT: %s', formattedQueueInfo(await get_queue(BASE_URL, API_KEY, params = {full_queue_param: True})))
|
||||
return len(affectedItems)
|
||||
except Exception as error:
|
||||
errorDetails(NAME, error)
|
||||
|
||||
Reference in New Issue
Block a user