airsonic-refix icon indicating copy to clipboard operation
airsonic-refix copied to clipboard

[Feature Request] Configure Maximum number of songs/artists/albums to return in search

Open hak0 opened this issue 1 year ago • 1 comments

In the subsonic API search3, by default the search result is limited by 20. If there are more than 20 artists/albums/songs in the search result, they will be discarded. This can cause problems for airsonic-refix users since they may not get the album they want in the search result.

To get the full search result, we need to set the artistCount, albumCount and songCount in the search request. The request may looks like: search3.view?artistCount=100&albumCount=100&songCount=100

I think we could either add 3 environment variables to configure these values, or just simply add 3 hard-coded limitation parameters(e.g. 500 or 1000) in the request.

hak0 avatar Feb 25 '24 02:02 hak0

search3 is page-able so one possible fix would be to allow the user to request the next page for any of the categories.

khers avatar Feb 27 '24 17:02 khers