mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
fix Subsonic artist list broken pagination
This commit is contained in:
@@ -316,15 +316,13 @@ export const SubsonicController: InternalControllerEndpoint = {
|
|||||||
results = searchResults;
|
results = searchResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.sortBy) {
|
return sortAndPaginate(results, {
|
||||||
results = sortAlbumArtistList(results, query.sortBy, query.sortOrder);
|
limit: query.limit,
|
||||||
}
|
sortBy: query.sortBy,
|
||||||
|
sortFn: query.sortBy ? sortAlbumArtistList : undefined,
|
||||||
return {
|
sortOrder: query.sortOrder,
|
||||||
items: results,
|
|
||||||
startIndex: query.startIndex,
|
startIndex: query.startIndex,
|
||||||
totalRecordCount: artists.length,
|
});
|
||||||
};
|
|
||||||
},
|
},
|
||||||
getAlbumArtistListCount: (args) =>
|
getAlbumArtistListCount: (args) =>
|
||||||
SubsonicController.getAlbumArtistList({
|
SubsonicController.getAlbumArtistList({
|
||||||
|
|||||||
Reference in New Issue
Block a user