Explanatory notes concerning TRACKTOTAL
authorAndrew Strong <andrew.david.strong@gmail.com>
Sat, 9 May 2015 09:32:22 +0000 (19:32 +1000)
committerAndrew Strong <andrew.david.strong@gmail.com>
Sat, 9 May 2015 09:32:22 +0000 (19:32 +1000)
abcde

diff --git a/abcde b/abcde
index e827149..e1e6de0 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -885,7 +885,7 @@ do_tag ()
                                        fi
                                        (
                                        # These are from
-                                       # http://www.xiph.org/ogg/vorbis/doc/v-comment.html
+                                       # http://www.xiph.org/vorbis/doc/v-comment.html
 
                                        echo ARTIST="$TRACKARTIST"
                                        echo ALBUM="$DALBUM"
@@ -935,6 +935,10 @@ do_tag ()
                                echo GENRE="$CDGENRE"
                        fi
                        echo TRACKNUMBER="${TRACKNUM:-$1}"
+                       # TRACKTOTAL is not in the proposed, minimal list of standard field names from
+                       # xiph.org: http://www.xiph.org/vorbis/doc/v-comment.html but is in common usage
+                       # and read by mediainfo, ffprobe, vlc, Aqualung, ogg123, Foobar. And now abcde :)
+                       # The tag is quietly ignored by  Audacious, MPlayer, mpv, XMMS....
                        echo TRACKTOTAL="${TRACKS}"
                        if [ -n "$DISCNUMBER" ]; then
                                echo DISCNUMBER="$DISCNUMBER"