* morituri/common/program.py:

Add Musicbrainz command.
This commit is contained in:
Thomas Vander Stichele
2011-09-15 14:22:37 +00:00
parent 513706eab6
commit 516a01d47a
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2011-09-15 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:
Add Musicbrainz command.
2011-09-04 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/program.py:

View File

@@ -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