From 5d8546e229a3ced7c525169a7b239d0b0f3e733d Mon Sep 17 00:00:00 2001 From: desktop Date: Thu, 18 Jan 2024 00:24:23 +0300 Subject: [PATCH] Name : Fix music. --- .config/bash/module/Name.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/bash/module/Name.sh b/.config/bash/module/Name.sh index 5920da0..505abdf 100644 --- a/.config/bash/module/Name.sh +++ b/.config/bash/module/Name.sh @@ -214,7 +214,8 @@ function name_music() { process() { # Extract new name. - local new_name="$(parse_titlecase $(parse_simplify ${target}))" + local ext=${target##*.} + local new_name="$(parse_titlecase $(parse_simplify ${target%.*})).${ext}" # Skip on no change. [[ "${target%/}" = "${new_name}" ]] && return 0