From c34700839b41b7b51854d3f6df0baa5e6fdb8c31 Mon Sep 17 00:00:00 2001 From: tcely Date: Tue, 11 Feb 2025 20:53:20 -0500 Subject: [PATCH] We can filter before metadata After #704, the `duration`, `published`, and `title` are all available before `metadata` has been retrieved. --- tubesync/sync/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/signals.py b/tubesync/sync/signals.py index fe245be5..bfc73696 100644 --- a/tubesync/sync/signals.py +++ b/tubesync/sync/signals.py @@ -137,7 +137,7 @@ def media_post_save(sender, instance, created, **kwargs): can_download_changed = False # Reset the skip flag if the download cap has changed if the media has not # already been downloaded - if not instance.downloaded and instance.metadata: + if not instance.downloaded: skip_changed = filter_media(instance) # Recalculate the "can_download" flag, this may