From f76c9ac562a40f3af6f94ed2b8ff3320e1c09393 Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 8 Mar 2021 00:26:09 +0100 Subject: [PATCH] Fix folder output name (ks-mp3-album) --- src/ks-mp3-album | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ks-mp3-album b/src/ks-mp3-album index c3aa6b3..622e0c7 100755 --- a/src/ks-mp3-album +++ b/src/ks-mp3-album @@ -210,7 +210,7 @@ else convert_files=$(expr ${convert_files} + 1) done echo "" - echo "* The output folder will be '${1}/to-oga'" + echo "* The output folder will be '${1}/to-mp3'" # Execute commands for conversion echo "" echo -n "* (Default: y) Do you want run the conversion? (y/n): " ; read run_commands_ffmpeg @@ -218,7 +218,7 @@ else exit else convert_files=1 - cd "${1}" && mkdir -p to-oga && rm -rf to-oga/* + cd "${1}" && mkdir -p to-mp3 && rm -rf to-mp3/* while [ ${convert_files} -le ${num_files} ] ; do show_file=$(cat ${tempFile} | head -${convert_files} | tail -1) fname=$(echo "${show_file}" | cut -d "." -f 1) @@ -285,7 +285,7 @@ else artist_title="${artist_file}" artist_init="${artist_file}" fi - ffmpeg -i "${show_file}" -map ${audio_track} -c:a ${acodec} -b:a ${b_acodec} -metadata title="${name_title}" -metadata date="${year_num}" -metadata genre="${genre_file}" -metadata album="${album_title}" -metadata artist="${artist_title}" -metadata track="${track_num}" "to-oga/${fname}.${v_ext}" + ffmpeg -i "${show_file}" -map ${audio_track} -c:a ${acodec} -b:a ${b_acodec} -metadata title="${name_title}" -metadata date="${year_num}" -metadata genre="${genre_file}" -metadata album="${album_title}" -metadata artist="${artist_title}" -metadata track="${track_num}" "to-mp3/${fname}.${v_ext}" # Increment variables convert_files=$(expr ${convert_files} + 1) track_init=$(expr ${track_num} + 1)