This commit is contained in:
Forrest 2026-08-04 16:08:51 -04:00
parent d558aba246
commit 3bd713d667
17 changed files with 1566 additions and 132 deletions

View file

@ -273,6 +273,13 @@ class SubsonicClient {
'updatePlaylist', {'playlistId': playlistId, 'comment': comment});
}
/// `updatePlaylist` + `public` — share (server-wide) or unshare a playlist.
/// Navidrome honors this; other users then see it in their `getPlaylists`.
Future<void> setPlaylistPublic(String playlistId, bool isPublic) async {
await _get(
'updatePlaylist', {'playlistId': playlistId, 'public': '$isPublic'});
}
/// `deletePlaylist` — delete a playlist by id.
Future<void> deletePlaylist(String id) async {
await _get('deletePlaylist', {'id': id});