Remove broken debug print, whoops
[clinton/abcde.git] / abcde
diff --git a/abcde b/abcde
index 051ad66..2792c69 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -790,6 +790,16 @@ echo ${id}
 return 0
 }
 
+print_genres () {
+    local len=${#CDGENRE[@]}
+    local i=0
+
+    for (( i=0; i < len ; i++))
+    do
+       echo GENRE="${CDGENRE[$i]}"
+    done
+}
+
 # do_tag [tracknumber]
 # id3 tags a filename
 # variables used:
@@ -880,7 +890,7 @@ do_tag ()
                                                echo DATE="$CDYEAR"
                                        fi
                                        if [ -n "$CDGENRE" ]; then
-                                               echo GENRE="$CDGENRE"
+                                               print_genres
                                        fi      
                                        echo TRACKNUMBER=${TRACKNUM:-$1}
                                        if [ -n "$DISCNUMBER" ]; then
@@ -919,7 +929,7 @@ do_tag ()
                                echo DATE="$CDYEAR"
                        fi
                        if [ -n "$CDGENRE" ]; then
-                               echo GENRE="$CDGENRE"
+                               print_genres
                        fi      
                        echo TRACKNUMBER="${TRACKNUM:-$1}"
                        if [ -n "$DISCNUMBER" ]; then