From b65a0ff7598652f4356afea790b933ff87070fea Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 19 Feb 2025 18:30:45 -0500 Subject: [PATCH] Remove the useless "not skipping" logged messages --- tubesync/sync/filtering.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tubesync/sync/filtering.py b/tubesync/sync/filtering.py index 8d6eb34a..3f7023c1 100644 --- a/tubesync/sync/filtering.py +++ b/tubesync/sync/filtering.py @@ -130,14 +130,7 @@ def filter_max_cap(instance: Media): return False max_cap_age = instance.source.download_cap_date - if not max_cap_age: - log.debug( - f"Media: {instance.source} / {instance} has not max_cap_age " - f"so not skipping based on max_cap_age" - ) - return False - - if instance.published <= max_cap_age: + if max_cap_age and instance.published <= max_cap_age: # log new media instances, not every media instance every time if not instance.skip: log.info(