mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-27 01:16:36 +00:00
Do not allow filtering to turn off Media.skip
This commit is contained in:
parent
ab0cc1c5ee
commit
806dde6cac
@ -12,7 +12,7 @@ from .overrides.custom_filter import filter_custom
|
||||
# Check the filter conditions for instance, return is if the Skip property has changed so we can do other things
|
||||
def filter_media(instance: Media):
|
||||
# Assume we aren't skipping it, if any of these conditions are true, we skip it
|
||||
skip = instance.skip
|
||||
skip = False
|
||||
|
||||
# Check if it's published
|
||||
if not skip and filter_published(instance):
|
||||
@ -41,9 +41,9 @@ def filter_media(instance: Media):
|
||||
|
||||
# Check if skipping
|
||||
if instance.skip != skip:
|
||||
instance.skip = skip
|
||||
instance.skip = instance.skip or skip
|
||||
log.info(
|
||||
f"Media: {instance.source} / {instance} has changed skip setting to {skip}"
|
||||
f"Media: {instance.source} / {instance} has changed skip setting to {instance.skip}"
|
||||
)
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user