Extra variable for the albun art embedding example
authorAndrew Strong <andrew.david.strong@gmail.com>
Sun, 25 Dec 2016 09:51:10 +0000 (20:51 +1100)
committerAndrew Strong <andrew.david.strong@gmail.com>
Sun, 25 Dec 2016 09:51:10 +0000 (20:51 +1100)
Thanks to Pastor Benjamin Steenbock for suggesting the addition
of a YEAR variable to the given example for embedding downloaded
album art.

FAQ

diff --git a/FAQ b/FAQ
index 72f44bd..5760306 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -294,6 +294,7 @@ A. The philosophy of getalbumart at the moment is to simply place the album
    {
     ARTISTFILE="$(mungefilename "$TRACKARTIST")"
     ALBUMFILE="$(mungefilename "$DALBUM")"
+    YEAR=${CDYEAR:-$CDYEAR}
 
    if [ "$VARIOUSARTISTS" = "y" ] ; then
      FINDPATH="$(eval echo "$VAOUTPUTFORMAT")"