From 61677a6c6f7cefeb59c91063d3f8369438381d9d Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 14 Feb 2020 11:23:12 +0100 Subject: [PATCH] Using subfolders with bitrate and coverartsize when converting --- music-sync.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/music-sync.sh b/music-sync.sh index 392b942..4608ae6 100755 --- a/music-sync.sh +++ b/music-sync.sh @@ -467,9 +467,18 @@ if [[ ! -f /tmp/music-sync-filelist ]]; then CleanUp exit 0 fi -if [[ $convert == false ]]; then + +if [[ $convert == true ]]; then + temp=${temp}/bitrate-${bitrate} + if [[ $convertart == true ]]; then + temp="${temp}/coverart-${coverartsize}" + else + temp="${temp}/coverart-original" + fi + VerboseOutput 2 "Conversion enabled. Using $temp as temp-folder" +else if [[ $temp != "/tmp/converted" ]]; then - VerboseOutput 2 "Conversion not enabled. Ignoring cache folder" + VerboseOutput 2 "Conversion not enabled. Ignoring temp folder" fi temp=$source fi