From dc9e641a7f7b8b19ee5696d4ec2c0d5a008b0d9d Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 14 Feb 2025 19:34:49 -0500 Subject: [PATCH] Do not log when skipped media is set to skip --- tubesync/sync/filtering.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tubesync/sync/filtering.py b/tubesync/sync/filtering.py index 21947c9f..d11a9847 100644 --- a/tubesync/sync/filtering.py +++ b/tubesync/sync/filtering.py @@ -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 + # only allow; False => True changes + 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