Ticket #45 (closed enhancement: fixed)
Artist search should honour COMPOSER/CONDUCTOR/BAND preferences
| Reported by: | stuarth | Owned by: | stuarth |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.2 |
| Component: | Plugin | Version: | 2.2 |
| Keywords: | Cc: | Richard.Harnwell@… |
Description
At the moment the Lazy Search will match any kind of contributor when performing an artist search. The normal SlimServer search, however, is more restrictive in the following ways:
- I believe it may only search ARTIST, not ALBUMARTIST when finding tracks.
- It has behaviour settings to enable COMPOSER, CONDUCTOR and BAND to be treated as additional artists, and will ignore those kinds of contributors if not enabled.
The Lazy Search plugin should be consistent with that as it should return the same results (give or take the fuzziness you'd expect) as the standard search.
Change History
comment:2 Changed 5 years ago by stuarth
Looking at how SlimServer works, I believe the tricks is to make use of Slim::Schema::artistOnlyRoles, which returns an array reference for the roles the user wants to consider as artists (taking the preferences into account).
See Slim::Schema::!ResultSet::Contributor::browse for an example of using this within a database search.
This should be used in the following areas:
- When performing an artist lazy search, constrain returned contributors by the desired roles. Note that this
- When lazifying the database for keywords, constrain the contributors for the track being lazified by the desired roles.
- When pressing ADD/PLAY/INSERT on an artist name returned from a lazy search.
