Cleaned up the suggested post_encode () embedding
authorAndrew Strong <andrew.david.strong@gmail.com>
Sun, 14 Jun 2015 10:46:49 +0000 (20:46 +1000)
committerAndrew Strong <andrew.david.strong@gmail.com>
Sun, 14 Jun 2015 10:46:49 +0000 (20:46 +1000)
Thanks to raztus for suggesting a more sane variable name...

FAQ

diff --git a/FAQ b/FAQ
index 1c9e8fe..e0f64ec 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -284,21 +284,21 @@ A. The philosophy of getalbumart at the moment is to simply place the album
     ARTISTFILE="$(mungefilename "$TRACKARTIST")"
     ALBUMFILE="$(mungefilename "$DALBUM")"
 
-   if [ "$OUTPUTTYPE" = "mp3" ] && [ "$TAGGER" = "$EYED3" ] ; then
-    vecho "Preparing to embed the album art..." >&2
-   else
-    vecho "Not embedding album art, you need mp3 output and eyeD3 tagging..." >&2
-    return 1
-   fi
-
    if [ "$VARIOUSARTISTS" = "y" ] ; then
      FINDPATH="$(eval echo "$VAOUTPUTFORMAT")"
    else
      FINDPATH="$(eval echo "$OUTPUTFORMAT")"
    fi
 
-   TRIMPATH="$(dirname "$OUTPUTDIR/$FINDPATH")"
-   cd "$TRIMPATH"
+   FINALDIR="$(dirname "$OUTPUTDIR/$FINDPATH")"
+   cd "$FINALDIR"
+
+   if [ "$OUTPUTTYPE" = "mp3" ] && [ "$TAGGER" = "$EYED3" ] ; then
+    vecho "Preparing to embed the album art..." >&2
+   else
+    vecho "Not embedding album art, you need mp3 output and eyeD3 tagging..." >&2
+    return 1
+   fi
 
     if [ -e "cover.jpg" ] ; then
       for i in *.mp3