mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-20 02:54:20 +02:00
Added protocol to delay profiles check
This commit is contained in:
@@ -24,11 +24,12 @@ def filterOutDelayedQueueItems(queue):
|
||||
for record in queue['records']:
|
||||
# Use get() method with default value "No indexer" if 'indexer' key does not exist
|
||||
indexer = record.get('indexer', 'No indexer')
|
||||
protocol = record.get('protocol', 'No protocol')
|
||||
combination = (record['title'], indexer)
|
||||
if record['status'] == 'delay':
|
||||
if combination not in seen_combinations:
|
||||
seen_combinations.add(combination)
|
||||
logger.debug('>>> Delayed queue item ignored: %s (Indexer: %s)', record['title'], indexer)
|
||||
logger.debug('>>> Delayed queue item ignored: %s (Protocol: %s, Indexer: %s)', record['title'], protocol, indexer)
|
||||
else:
|
||||
filtered_records.append(record)
|
||||
if not filtered_records:
|
||||
|
||||
Reference in New Issue
Block a user