I don't like other's output

This commit is contained in:
Jeroen De Meerleer 2019-03-16 14:51:38 +01:00
parent 8448b301c9
commit b4ee0ccfcf

View File

@ -246,11 +246,11 @@ ConvertFiles() {
VerboseOutput 2 "Converted: $line"
if [[ $convertart == true ]]; then
mkdir "$temp/$line-images/"
eyeD3 --write-images "$temp/$line-images/" "$temp/$line"
convert "$temp/$line-images/FRONT_COVER.jpg" -resize 200x200 "$temp/$line-images/FRONT_COVER.jpg"
eyeD3 --remove-all-images "$temp/$line"
eyeD3 --add-image "$temp/$line-images/FRONT_COVER.jpg:FRONT_COVER" "$temp/$line"
VerboseOutput 2 "Converted cover art: $temp/$line"
eyeD3 --write-images "$temp/$line-images/" "$temp/$line" 1>/dev/null 2>/dev/null
convert "$temp/$line-images/FRONT_COVER.*" -resize 200x200 "$temp/$line-images/FRONT_COVER.jpg" 1>/dev/null 2>/dev/null
eyeD3 --remove-all-images "$temp/$line" 1>/dev/null 2>/dev/null
eyeD3 --add-image "$temp/$line-images/FRONT_COVER.jpg:FRONT_COVER" "$temp/$line" 1>/dev/null 2>/dev/null
VerboseOutput 2 "Converted cover art: $line"
fi
else