Home | Trees | Indices | Help |
---|
|
object --+ | Entity --+ | Release
Represents a Release.
A release within MusicBrainz is an Entity which contains Track objects. Releases may be of more than one type: There can be albums, singles, compilations, live recordings, official releases, bootlegs etc.
Note: The current MusicBrainz server implementation supports only a limited set of types.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
TYPE_NONE =
|
|
TYPE_ALBUM =
|
|
TYPE_SINGLE =
|
|
TYPE_EP =
|
|
TYPE_COMPILATION =
|
|
TYPE_SOUNDTRACK =
|
|
TYPE_SPOKENWORD =
|
|
TYPE_INTERVIEW =
|
|
TYPE_AUDIOBOOK =
|
|
TYPE_LIVE =
|
|
TYPE_REMIX =
|
|
TYPE_OTHER =
|
|
TYPE_OFFICIAL =
|
|
TYPE_PROMOTION =
|
|
TYPE_BOOTLEG =
|
|
TYPE_PSEUDO_RELEASE =
|
Properties | |
types The list of types for this release. |
|
title The title of this release. |
|
textLanguage The language used in release and track titles. |
|
textScript The script used in release and track titles. |
|
asin The amazon shop identifier. |
|
artist The main artist of this release. |
|
tracks The list of tracks. |
|
tracksOffset The offset of the track list. |
|
tracksCount The total number of releases |
|
releaseEvents The list of release events. |
|
discs The list of associated discs. |
|
Inherited from Inherited from |
Method Details |
Constructor.
|
Returns the types of this release. To test for release types, you can use the constants TYPE_ALBUM, TYPE_SINGLE, etc.
See Also: musicbrainz2.utils.getReleaseTypeName |
Add a type to the list of types.
See Also: getTypes |
Returns the release's title.
|
Sets the release's title.
|
Returns the language used in release and track titles. To represent the language, the ISO-639-2/T standard is used, which provides three-letter terminological language codes like 'ENG', 'DEU', 'JPN', 'KOR', 'ZHO' or 'YID'. Note that this refers to release and track titles, not lyrics.
See Also: musicbrainz2.utils.getLanguageName |
Sets the language used in releaes and track titles.
See Also: getTextLanguage |
Returns the script used in release and track titles. To represent the script, ISO-15924 script codes are used. Valid codes are, among others: 'Latn', 'Cyrl', 'Hans', 'Hebr' Note that this refers to release and track titles, not lyrics.
See Also: musicbrainz2.utils.getScriptName |
Sets the script used in releaes and track titles.
See Also: getTextScript |
Returns the amazon shop identifier (ASIN). The ASIN is a 10-letter code (except for books) assigned by Amazon, which looks like 'B000002IT2' or 'B00006I4YD'.
|
Sets the amazon shop identifier (ASIN).
See Also: getAsin |
Returns the main artist of this release.
|
Sets this release's main artist.
|
Checks if this is a single artist's release. Returns Note that the release's artist has to be set (see setArtist) for this. The track artists may be unset.
|
Returns the tracks this release contains.
See Also: getTracksOffset, getTracksCount |
Adds a track to this release. This appends a track at the end of this release's track list.
|
Returns the offset of the track list. This is used if the track list is incomplete (ie. the web service only
returned part of the tracks on this release). Note that the offset value
is zero-based, which means track
See Also: getTracks, getTracksCount |
Sets the offset of the track list.
See Also: getTracksOffset, setTracksCount |
Returns the number of tracks on this release. This may or may not match with the number of elements that getTracks returns. If the count is higher than the list, it indicates that the list is incomplete.
See Also: setTracksCount, getTracks, getTracksOffset |
Sets the number of tracks on this release.
See Also: getTracksCount, setTracksOffset |
Returns the list of release events. A Release may contain a list of so-called release events, each represented using a ReleaseEvent object. Release evens specify where and when this release was, well, released.
See Also: getReleaseEventsAsDict |
Adds a release event to this release.
See Also: getReleaseEvents |
Returns the release events represented as a dict. Keys are ISO-3166 country codes like 'DE', 'UK', 'FR' etc. Values are dates in 'YYYY', 'YYYY-MM' or 'YYYY-MM-DD' format.
|
Returns the earliest release date. This favours complete dates. For example, '2006-09' is returned if there is '2000', too. If there is no release event associated with this release, None is returned.
See Also: getReleaseEvents, getReleaseEventsAsDict |
Returns the earliest release event. This works like getEarliestReleaseDate, but instead of just the date, this returns a ReleaseEvent object.
See Also: getReleaseEvents, getEarliestReleaseDate |
Returns the discs associated with this release. Discs are currently containers for MusicBrainz DiscIDs. Note that under rare circumstances (identical TOCs), a DiscID could be associated with more than one release.
|
Adds a disc to this release.
|
Class Variable Details |
TYPE_COMPILATION
|
TYPE_PSEUDO_RELEASE
|
Property Details |
typesThe list of types for this release.
|
titleThe title of this release. |
textLanguageThe language used in release and track titles.
|
textScriptThe script used in release and track titles.
|
asinThe amazon shop identifier. |
artistThe main artist of this release. |
tracksThe list of tracks.
|
tracksOffsetThe offset of the track list.
|
tracksCountThe total number of releases
|
releaseEventsThe list of release events.
|
discsThe list of associated discs.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Nov 2 16:31:40 2008 | http://epydoc.sourceforge.net |