From edd320b786dbb6959f92bb66ae58363cd3cd49c0 Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 12 Feb 2025 23:26:14 -0500 Subject: [PATCH] Replace `Source.SOURCE_TYPE_YOUTUBE_PLAYLIST` --- tubesync/sync/signals.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubesync/sync/signals.py b/tubesync/sync/signals.py index fe245be5..a47ba4ae 100644 --- a/tubesync/sync/signals.py +++ b/tubesync/sync/signals.py @@ -17,6 +17,7 @@ from .tasks import (delete_task_by_source, delete_task_by_media, index_source_ta get_media_metadata_task, get_media_download_task) from .utils import delete_file, glob_quote from .filtering import filter_media +from .choices import V, YouTube_SourceType @receiver(pre_save, sender=Source) @@ -52,7 +53,7 @@ def source_post_save(sender, instance, created, **kwargs): priority=0, verbose_name=verbose_name.format(instance.name) ) - if instance.source_type != Source.SOURCE_TYPE_YOUTUBE_PLAYLIST and instance.copy_channel_images: + if instance.source_type != V(YouTube_SourceType.PLAYLIST) and instance.copy_channel_images: download_source_images( str(instance.pk), priority=2,