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