Do not log when the skip state remains unchanged

This commit is contained in:
tcely 2024-12-21 17:01:13 -05:00 committed by GitHub
parent f88df0d4e6
commit abfa8ca042
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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