Home | Trees | Index | Help |
---|
Package musicbrainz2 :: Module disc |
|
Utilities for working with Audio CDs.
This module contains utilities for working with Audio CDs.
The functions in this module need both a working ctypes package (already included in python-2.5) and an installed libdiscid. If you don't have libdiscid, it can't be loaded, or your platform isn't supported by either ctypes or this module, aNotImplementedError
is
raised when using the readDisc()
function.
Author: Matthias Friedrich <matt@mafr.de>
Exceptions | |
---|---|
DiscError |
The Audio CD could not be read. |
Function Summary | |
---|---|
Returns a URL for adding a disc to the MusicBrainz database. | |
Reads an Audio CD in the disc drive. |
Function Details |
---|
getSubmissionUrl(disc, host='mm.musicbrainz.org', port=80)Returns a URL for adding a disc to the MusicBrainz database. A fully initialized
|
readDisc(deviceName=None)Reads an Audio CD in the disc drive. This reads a CD's table of contents (TOC) and calculates the
MusicBrainz DiscID, which is a 28 character ASCII string. This DiscID
can be used to retrieve a list of matching releases from the web
service (see Note that an Audio CD has to be in drive for this to work. The
DiscError exception is raised.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 | http://epydoc.sf.net |