__init__(self,
title=None,
releaseTypes=None,
artistName=None,
artistId=None,
limit=None,
offset=None,
query=None)
(Constructor)
| source code
|
Constructor.
If artistId is set, only releases matching those IDs are
returned. The releaseTypes parameter allows you to limit
the types of the release groups 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 group's title
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 release groups to return
offset - start results at this zero-based offset
query - a string containing a query in Lucene syntax
- Overrides:
object.__init__
|