TRACKTOTAL written to ogg files
authorAndrew Strong <andrew.david.strong@gmail.com>
Sat, 9 May 2015 21:54:38 +0000 (07:54 +1000)
committerAndrew Strong <andrew.david.strong@gmail.com>
Sat, 9 May 2015 21:54:38 +0000 (07:54 +1000)
abcde
changelog

diff --git a/abcde b/abcde
index e1e6de0..370e327 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -897,6 +897,11 @@ 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"
                                        fi
index bef867a..5716ef1 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,8 +1,7 @@
 abcde 2.6.1
 
-  * Total track number now written to flac files as well as
-    individual track number. Thanks to monkth for the
-    notification. This solves Issue 76.
+  * TRACKTOTAL now written to flac and ogg files. Thanks to 
+     monkth for the notification. This resolves Issue 76.
   * Support added for the downloading of album art. A huge
     thank you to Johannes Gernemann who came forward with
     the technique used and also the original patch. An equally