mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
The old video file should also have a single extension
This commit is contained in:
parent
54aa9fd165
commit
15898df3bb
@ -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}')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user