diff --git a/crunchy-cli-core/src/utils/format.rs b/crunchy-cli-core/src/utils/format.rs index adbfb6d..716f124 100644 --- a/crunchy-cli-core/src/utils/format.rs +++ b/crunchy-cli-core/src/utils/format.rs @@ -409,8 +409,9 @@ impl Format { /// Formats the given string if it has specific pattern in it. It also sanitizes the filename. pub fn format_path(&self, path: PathBuf) -> PathBuf { - let mut path = sanitize(path.to_string_lossy(), false); - path = path + let path = path + .to_string_lossy() + .to_string() .replace("{title}", &sanitize(&self.title, true)) .replace( "{audio}",