From 516a01d47aa54477d5cf2531e07980806cd43556 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 15 Sep 2011 14:22:37 +0000 Subject: [PATCH] * morituri/common/program.py: Add Musicbrainz command. --- ChangeLog | 5 +++++ morituri/common/program.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0a65874..84d511d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-15 Thomas Vander Stichele + + * morituri/common/program.py: + Add Musicbrainz command. + 2011-09-04 Thomas Vander Stichele * morituri/common/program.py: diff --git a/morituri/common/program.py b/morituri/common/program.py index 3a48987..8ca2a2e 100644 --- a/morituri/common/program.py +++ b/morituri/common/program.py @@ -133,6 +133,7 @@ def getMetadata(release): return metadata +# see http://bugs.musicbrainz.org/browser/python-musicbrainz2/trunk/examples/ripper.py def musicbrainz(discid): """ @rtype: list of L{DiscMetadata} @@ -174,7 +175,7 @@ def musicbrainz(discid): # tracks. Query the web service once again to get all data we need. try: inc = mbws.ReleaseIncludes(artist=True, tracks=True, - releaseEvents=True) + releaseEvents=True, discs=True) # Arid - Under the Cold Street Lights has getId() None if release.getId(): release = query.getReleaseById(release.getId(), inc) @@ -300,7 +301,7 @@ class Program(log.Loggable): @type outdir: unicode @param template: the template for writing the file @type template: unicode - @param i: track number (0 for HTOA) + @param i: track number (0 for HTOA, or for disc) @type i: int @rtype: unicode