__init__(self,
title=None,
discId=None,
releaseTypes=None,
artistName=None,
artistId=None,
limit=None,
offset=None,
query=None,
trackCount=None)
(Constructor)
| source code
|
Constructor.
If discId or artistId are set, only releases
matching those IDs are returned. The releaseTypes parameter
allows to limit the types of the releases returned. You can set it to
(Release.TYPE_ALBUM, Release.TYPE_OFFICIAL) , for example, to
only get officially released albums. Note that those values are connected
using the AND operator. MusicBrainz' support is currently very
limited, so Release.TYPE_LIVE and
Release.TYPE_COMPILATION exclude each other (see the
documentation on release attributes for more information and all
valid values).
If both the artistName and the artistId
parameter are given, the server will ignore artistName .
The query parameter may contain a query in Lucene syntax. Note that query may not be
used together with the other parameters except for limit and
offset .
- Parameters:
title - a unicode string containing the release's title
discId - a unicode string containing the DiscID
releaseTypes - a sequence of release type URIs
artistName - a unicode string containing the artist's name
artistId - a unicode string containing the artist's ID
limit - the maximum number of releases to return
offset - start results at this zero-based offset
query - a string containing a query in Lucene syntax
trackCount - the number of tracks in the release
- Overrides:
object.__init__
|