mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
add multiple genre support for nd albums/tracks
This commit is contained in:
parent
6df270ba34
commit
4a48598260
4 changed files with 77 additions and 20 deletions
|
|
@ -271,6 +271,10 @@ export const NavidromeController: ControllerEndpoint = {
|
|||
getAlbumList: async (args) => {
|
||||
const { apiClientProps, query } = args;
|
||||
|
||||
const genres = hasFeature(apiClientProps.server, ServerFeature.BFR)
|
||||
? query.genres
|
||||
: query.genres?.[0];
|
||||
|
||||
const res = await ndApiClient(apiClientProps).getAlbumList({
|
||||
query: {
|
||||
_end: query.startIndex + (query.limit || 0),
|
||||
|
|
@ -279,7 +283,7 @@ export const NavidromeController: ControllerEndpoint = {
|
|||
_start: query.startIndex,
|
||||
artist_id: query.artistIds?.[0],
|
||||
compilation: query.compilation,
|
||||
genre_id: query.genres?.[0],
|
||||
genre_id: genres,
|
||||
name: query.searchTerm,
|
||||
...query._custom?.navidrome,
|
||||
starred: query.favorite,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue