From 15898df3bbb0205d97a9070ef3d0486e9bb997b6 Mon Sep 17 00:00:00 2001 From: tcely Date: Thu, 22 May 2025 10:03:08 -0400 Subject: [PATCH] The old video file should also have a single extension --- tubesync/sync/models/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/models/media.py b/tubesync/sync/models/media.py index 4f4a16aa..cad249a3 100644 --- a/tubesync/sync/models/media.py +++ b/tubesync/sync/models/media.py @@ -1152,7 +1152,7 @@ class Media(models.Model): # collect the list of files to move # this should not include the video we just moved - (old_prefix_path, old_stem) = directory_and_stem(old_video_path) + (old_prefix_path, old_stem) = directory_and_stem(old_video_path, only_once=True) other_paths = list(old_prefix_path.glob(glob_quote(old_stem) + '*')) log.info(f'Collected {len(other_paths)} other paths for: {self!s}')