Fixup use of _glob_translation

This commit is contained in:
tcely 2024-12-18 03:18:17 -05:00 committed by GitHub
parent 40aed6fc5b
commit 4b17c08fa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1535,7 +1535,7 @@ class Media(models.Model):
stem = Path(stem.stem) stem = Path(stem.stem)
old_stem = stem old_stem = stem
old_prefix_path = old_video_path.parent old_prefix_path = old_video_path.parent
glob_prefix = str(old_stem).translate(_glob_translation) glob_prefix = str(old_stem).translate(self._glob_translation)
other_paths = list(old_prefix_path.glob(glob_prefix + '*')) other_paths = list(old_prefix_path.glob(glob_prefix + '*'))
new_video_path.parent.mkdir(parents=True, exist_ok=True) new_video_path.parent.mkdir(parents=True, exist_ok=True)