[SCM] morituri/master: add how many tracks the disc is

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:59 UTC 2014


The following commit has been merged in the master branch:
commit 131cc78c396396cff8c76e977f3d4543362084cf
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sun Feb 3 17:24:12 2013 +0100

    add how many tracks the disc is

diff --git a/morituri/common/program.py b/morituri/common/program.py
index b66d717..587b4fa 100644
--- a/morituri/common/program.py
+++ b/morituri/common/program.py
@@ -227,9 +227,13 @@ class Program(log.Loggable):
         return None
 
     def getMusicBrainz(self, ittoc, mbdiscid, release=None):
+        """
+        @type  ittoc: L{morituri.image.table.Table}
+        """
         # look up disc on musicbrainz
-        self._stdout.write('Disc duration: %s\n' % common.formatTime(
-            ittoc.duration() / 1000.0))
+        self._stdout.write('Disc duration: %s, %d audio tracks\n' % (
+            common.formatTime(ittoc.duration() / 1000.0),
+            ittoc.getAudioTracks()))
         self.debug('MusicBrainz submit url: %r',
             ittoc.getMusicBrainzSubmitURL())
         ret = None

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list