Commits

Denilson Sá committed 96af96e

Adding basename to picture name. Fixes type auto-detection.

Comments (0)

Files changed (1)

embed_picture_into_mp3.sh

 # Auto-detect type.
 # http://stackoverflow.com/questions/2264428/converting-string-to-lower-case-in-bash-shell-scripting
 AUTO_TYPE="OTHER"
-case "${PICTURE,,}" in
+PICTURE_NAME="$( basename "${PICTURE}" )"
+case "${PICTURE_NAME,,}" in
 	albumart* | cover* | front* )
 		AUTO_TYPE="FRONT_COVER"
 		;;