Using subfolders with bitrate and coverartsize when converting

This commit is contained in:
Jeroen De Meerleer 2020-02-14 11:23:12 +01:00
parent cbffe2baaa
commit 61677a6c6f

View File

@ -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