diff --git a/tubesync/sync/models/media.py b/tubesync/sync/models/media.py index cad249a3..454d82ee 100644 --- a/tubesync/sync/models/media.py +++ b/tubesync/sync/models/media.py @@ -1193,7 +1193,7 @@ class Media(models.Model): other_path.replace(new_file_path) for fuzzy_path in fuzzy_paths: - (fuzzy_prefix_path, fuzzy_stem) = directory_and_stem(fuzzy_path) + (fuzzy_prefix_path, fuzzy_stem) = directory_and_stem(fuzzy_path, only_once=False) old_file_str = fuzzy_path.name new_file_str = new_stem + old_file_str[len(fuzzy_stem):] new_file_path = Path(new_prefix_path / new_file_str)