Class MusicBrainz::Webservice::TrackFilter
In: lib/rbrainz/webservice/filter.rb
Parent: AbstractFilter

A filter for the track collection.

Methods

new  

Public Class methods

The parameter filter is a hash with filter options. At least the :title, :puid or :query filter must be specified.

Available filter options:

:title
Fetch a list of tracks with a matching title.
:artist
The returned tracks have to match the given artist name.
:release
The returned tracks have to match the given release title.
:duration
The length of the track in milliseconds
:tracknum
The track number
:artistid
The artist‘s MBID. If this is given, the artist parameter is ignored.
:releaseid
The release‘s MBID. If this is given, the release parameter is ignored.
:puid
The returned tracks have to match the given PUID.
:count
Number of tracks on the release.
:releasetype
The type of the release this track appears on. See Model::Release for possible values.
:limit
The maximum number of tracks returned. Defaults to 25, the maximum allowed value is 100.
:offset
Return search results starting at a given offset. Used for paging through more than one page of results.
:query
A Lucene search query. The query parameter is a search string which will be passed to the underlying Lucene search engine. It must follow the syntax described in musicbrainz.org/doc/TextSearchSyntax.

[Validate]