From abfa8ca042491bdef9ac72592e48fe29f540c573 Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 21 Dec 2024 17:01:13 -0500 Subject: [PATCH] Do not log when the skip state remains unchanged --- tubesync/sync/filtering.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tubesync/sync/filtering.py b/tubesync/sync/filtering.py index 338b0a42..4ca8a382 100644 --- a/tubesync/sync/filtering.py +++ b/tubesync/sync/filtering.py @@ -122,10 +122,12 @@ def filter_max_cap(instance: Media): return False if instance.published <= max_cap_age: - log.info( - f"Media: {instance.source} / {instance} is too old for " - f"the download cap date, marking to be skipped" - ) + # log new media instances, not every media instance every time + if not instance.skip: + log.info( + f"Media: {instance.source} / {instance} is too old for " + f"the download cap date, marking to be skipped" + ) return True return False