This commit is contained in:
simojenki
2022-01-05 12:06:53 +11:00
parent 1c94a6d565
commit 6ad39ce044
2 changed files with 192 additions and 215 deletions

View File

@@ -375,11 +375,6 @@ const getAlbumJson = (artist: Artist, album: Album, tracks: Track[]) =>
const getSongJson = (track: Track) => subsonicOK({ song: asSongJson(track) });
// const getStarredJson = ({ albums }: { albums: Album[] }) => subsonicOK({starred2: {
// album: albums.map(it => asAlbumJson({ id: it.artistId, name: it.artistName }, it, [])),
// song: [],
// }})
const subsonicOK = (body: any = {}) => ({
"subsonic-response": {
status: "ok",