From b520d75f20726bce99be68d40eb40dde386bb034 Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 1 Mar 2025 09:39:54 -0500 Subject: [PATCH] Fixes from tests --- tubesync/sync/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/sync/models.py b/tubesync/sync/models.py index 0cc2de5e..36417b1f 100644 --- a/tubesync/sync/models.py +++ b/tubesync/sync/models.py @@ -776,8 +776,8 @@ class Media(models.Model): def save(self, force_insert=False, force_update=False, using=None, update_fields=None): # Correct the path after a source is renamed - if self.downloaded and not self.media_file_exists: - fp_list = list(self.filepath) + if self.created and self.downloaded and not self.media_file_exists: + fp_list = list((self.filepath,)) if self.media_file: fp_list.append(self.filepath.parent / Path(self.media_file.path).name) for filepath in fp_list: