From d69b442019cced5ce96ec15cf88e6ffd93cb8753 Mon Sep 17 00:00:00 2001 From: Wolfgang Kulhanek Date: Wed, 22 Oct 2025 17:53:46 +0200 Subject: [PATCH] Change playlist handling --- src/smapi.ts | 2 ++ tests/smapi.test.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/smapi.ts b/src/smapi.ts index 8f1aa02..1d382f3 100644 --- a/src/smapi.ts +++ b/src/smapi.ts @@ -289,6 +289,7 @@ const playlist = (bonobUrl: URLBuilder, playlist: Playlist) => ({ title: playlist.name, albumArtURI: coverArtURI(bonobUrl, playlist).href(), canPlay: true, + canEnumerate: true, attributes: { readOnly: false, userContent: false, @@ -881,6 +882,7 @@ function bindSmapiSoapServiceToExpress( title: lang("playlists"), albumArtURI: iconArtURI(bonobUrl, "playlists").href(), itemType: "playlist", + canEnumerate: true, attributes: { readOnly: false, userContent: true, diff --git a/tests/smapi.test.ts b/tests/smapi.test.ts index 3b74263..c3d36aa 100644 --- a/tests/smapi.test.ts +++ b/tests/smapi.test.ts @@ -1161,6 +1161,7 @@ describe("wsdl api", () => { title: "Playlists", albumArtURI: iconArtURI(bonobUrl, "playlists").href(), itemType: "playlist", + canEnumerate: true, attributes: { readOnly: "false", renameable: "false", @@ -1261,6 +1262,7 @@ describe("wsdl api", () => { title: "Afspeellijsten", albumArtURI: iconArtURI(bonobUrl, "playlists").href(), itemType: "playlist", + canEnumerate: true, attributes: { readOnly: "false", renameable: "false", @@ -1497,6 +1499,7 @@ describe("wsdl api", () => { playlist ).href(), canPlay: true, + canEnumerate: true, attributes: { readOnly: "false", userContent: "false", @@ -1529,6 +1532,7 @@ describe("wsdl api", () => { playlist ).href(), canPlay: true, + canEnumerate: true, attributes: { readOnly: "false", userContent: "false",