Do not log when skipped media is set to skip

This commit is contained in:
tcely 2025-02-14 19:34:49 -05:00 committed by GitHub
parent 9045bed509
commit dc9e641a7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,11 +40,11 @@ def filter_media(instance: Media):
skip = True
# Check if skipping
if instance.skip != skip:
# only allow; False => True changes
instance.skip = instance.skip or skip
if not instance.skip and False != skip:
instance.skip = skip
log.info(
f"Media: {instance.source} / {instance} has changed skip setting to {instance.skip}"
f"Media: {instance.source} / {instance} has changed skip setting to {skip}"
)
return True