From 510f4c2f60b4a00cb11741dfb69e65ce618649db Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 11 Jul 2024 17:41:12 +0800 Subject: [PATCH] Fix #482 by only scheduling thumbnail downloads if we are intending to download the media --- tubesync/sync/signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/signals.py b/tubesync/sync/signals.py index 5d436517..52146c5e 100644 --- a/tubesync/sync/signals.py +++ b/tubesync/sync/signals.py @@ -139,10 +139,10 @@ def media_post_save(sender, instance, created, **kwargs): verbose_name=verbose_name.format(instance.pk), remove_existing_tasks=True ) - # If the media is missing a thumbnail schedule it to be downloaded + # If the media is missing a thumbnail schedule it to be downloaded (unless we are skipping this media) if not instance.thumb_file_exists: instance.thumb = None - if not instance.thumb: + if not instance.thumb and not instance.skip: thumbnail_url = instance.thumbnail if thumbnail_url: log.info(f'Scheduling task to download thumbnail for: {instance.name} '