The old video file should also have a single extension

This commit is contained in:
tcely 2025-05-22 10:03:08 -04:00 committed by GitHub
parent 54aa9fd165
commit 15898df3bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1152,7 +1152,7 @@ class Media(models.Model):
# collect the list of files to move # collect the list of files to move
# this should not include the video we just moved # 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) + '*')) other_paths = list(old_prefix_path.glob(glob_quote(old_stem) + '*'))
log.info(f'Collected {len(other_paths)} other paths for: {self!s}') log.info(f'Collected {len(other_paths)} other paths for: {self!s}')