From d9c56db62741c53f458e232fc88e9fda10ab3841 Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 11 Dec 2024 05:35:09 -0500 Subject: [PATCH] Disable checking against days to keep This isn't the logic we should be using. Just stop using it until the function is comparing the proper dates. --- tubesync/sync/filtering.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/filtering.py b/tubesync/sync/filtering.py index 351b3f83..fb0a6b16 100644 --- a/tubesync/sync/filtering.py +++ b/tubesync/sync/filtering.py @@ -23,8 +23,8 @@ def filter_media(instance: Media): skip = True # Check if older than source_cutoff - if filter_source_cutoff(instance): - skip = True + #if filter_source_cutoff(instance): + # skip = True # Check if we have filter_text and filter text matches if filter_filter_text(instance): @@ -128,6 +128,7 @@ def filter_max_cap(instance: Media): # If the source has a cut-off, check the upload date is within the allowed delta +# TODO: days to keep should be compared to downloaded date, not published def filter_source_cutoff(instance: Media): if instance.source.delete_old_media and instance.source.days_to_keep > 0: if not isinstance(instance.published, datetime):