Allow use of genre in embedalbumart function
authorAndrew Strong <andrew.david.strong@gmail.com>
Fri, 1 Dec 2017 04:08:35 +0000 (15:08 +1100)
committerAndrew Strong <andrew.david.strong@gmail.com>
Fri, 1 Dec 2017 04:08:35 +0000 (15:08 +1100)
Thanks to Joe Harrington for the bug report.

abcde

diff --git a/abcde b/abcde
index 9993a76..5fa6fb2 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -3309,8 +3309,9 @@ do_getalbumart()
 do_embedalbumart()
 {
        # Set variables:
-       ARTISTFILE="$(mungefilename "$TRACKARTIST")"
-       ALBUMFILE="$(mungefilename "$DALBUM")"
+       ALBUMFILE="$(mungealbumname "$DALBUM")"
+       ARTISTFILE="$(mungeartistname "$DARTIST")"
+       GENRE="$(mungegenre "$GENRE")"
        YEAR=${CDYEAR:-$CDYEAR}
 
        # Allow for multiple output formats: