Fix playlists?

This commit is contained in:
Wolfgang Kulhanek
2025-10-17 09:34:22 +02:00
parent 665fcaf5cb
commit ef17fbdcff

View File

@@ -693,7 +693,7 @@ export class SubsonicMusicLibrary implements MusicLibrary {
playlists = async () =>
this.subsonic
.getJSON<GetPlaylistsResponse>(this.credentials, "/rest/getPlaylists")
.then(({ playlists }) => (playlists.playlist || []).map(asPlayListSummary))
.then(({ playlists }) => (playlists?.playlist || []).map(asPlayListSummary))
playlist = async (id: string) =>
this.subsonic