mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
funkwhale bodge
This commit is contained in:
parent
ecef9bea5e
commit
b3b810c62c
3 changed files with 27 additions and 20 deletions
|
|
@ -125,7 +125,7 @@ export const SubsonicController: ControllerEndpoint = {
|
|||
}
|
||||
|
||||
return {
|
||||
id: res.body.playlist.id,
|
||||
id: res.body.playlist.id.toString(),
|
||||
name: res.body.playlist.name,
|
||||
};
|
||||
},
|
||||
|
|
@ -570,7 +570,10 @@ export const SubsonicController: ControllerEndpoint = {
|
|||
}
|
||||
|
||||
return {
|
||||
items: res.body.musicFolders.musicFolder,
|
||||
items: res.body.musicFolders.musicFolder.map((folder) => ({
|
||||
id: folder.id.toString(),
|
||||
name: folder.name,
|
||||
})),
|
||||
startIndex: 0,
|
||||
totalRecordCount: res.body.musicFolders.musicFolder.length,
|
||||
};
|
||||
|
|
@ -902,7 +905,7 @@ export const SubsonicController: ControllerEndpoint = {
|
|||
fromAlbumPromises.push(
|
||||
ssApiClient(apiClientProps).getAlbum({
|
||||
query: {
|
||||
id: albumId,
|
||||
id: albumId.toString(),
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue