mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
exclude missing for more fields
This commit is contained in:
@@ -187,6 +187,7 @@ export const NavidromeController: ControllerEndpoint = {
|
|||||||
name: query.searchTerm,
|
name: query.searchTerm,
|
||||||
...query._custom?.navidrome,
|
...query._custom?.navidrome,
|
||||||
role: hasFeature(apiClientProps.server, ServerFeature.BFR) ? 'albumartist' : '',
|
role: hasFeature(apiClientProps.server, ServerFeature.BFR) ? 'albumartist' : '',
|
||||||
|
...excludeMissing(apiClientProps.server),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -232,6 +233,7 @@ export const NavidromeController: ControllerEndpoint = {
|
|||||||
_sort: NDSongListSort.ALBUM,
|
_sort: NDSongListSort.ALBUM,
|
||||||
_start: 0,
|
_start: 0,
|
||||||
album_id: [query.id],
|
album_id: [query.id],
|
||||||
|
...excludeMissing(apiClientProps.server),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -310,6 +312,7 @@ export const NavidromeController: ControllerEndpoint = {
|
|||||||
name: query.searchTerm,
|
name: query.searchTerm,
|
||||||
...query._custom?.navidrome,
|
...query._custom?.navidrome,
|
||||||
role: query.role || undefined,
|
role: query.role || undefined,
|
||||||
|
...excludeMissing(apiClientProps.server),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -433,6 +436,7 @@ export const NavidromeController: ControllerEndpoint = {
|
|||||||
? songListSortMap.navidrome[query.sortBy]
|
? songListSortMap.navidrome[query.sortBy]
|
||||||
: ndType._enum.songList.ID,
|
: ndType._enum.songList.ID,
|
||||||
_start: query.startIndex,
|
_start: query.startIndex,
|
||||||
|
...excludeMissing(apiClientProps.server),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -532,6 +536,7 @@ export const NavidromeController: ControllerEndpoint = {
|
|||||||
_sort: NDSongListSort.RANDOM,
|
_sort: NDSongListSort.RANDOM,
|
||||||
_start: 0,
|
_start: 0,
|
||||||
album_artist_id: query.albumArtistIds,
|
album_artist_id: query.albumArtistIds,
|
||||||
|
...excludeMissing(apiClientProps.server),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user