feat(subsonic): apps can make, change and delete playlists (#8021)
release / web (push) Successful in 1m43s
release / go (push) Successful in 2m21s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m31s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m44s
release / android (push) Canceled after 3m43s

createPlaylist makes a playlist, or with playlistId replaces its songs;
updatePlaylist renames it, sets its comment and visibility, removes songs
by the index the app was shown and adds songs; deletePlaylist deletes it.
A song index counts only the entries getPlaylist lists, so a hidden
entry ahead of it doesn't shift which song goes.

The playlist service gains ReplaceTracks and RemovePositions; the owner
and system-mix checks that each change repeated are one function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 10:17:15 -05:00
co-authored by Claude Opus 5.5
parent 3491cf4c58
commit df2095baae
7 changed files with 614 additions and 180 deletions
+3
View File
@@ -101,6 +101,9 @@ func mountAuthed(sub chi.Router, b *browseHandlers, m *mediaHandlers, u *userHan
register(sub, "/getUser", u.getUser)
register(sub, "/getPlaylists", p.getPlaylists)
register(sub, "/getPlaylist", p.getPlaylist)
register(sub, "/createPlaylist", p.createPlaylist)
register(sub, "/updatePlaylist", p.updatePlaylist)
register(sub, "/deletePlaylist", p.deletePlaylist)
register(sub, "/getRandomSongs", p.getRandomSongs)
register(sub, "/getSimilarSongs", p.getSimilarSongs)
register(sub, "/getSimilarSongs2", p.getSimilarSongs2)