Playlists #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We want to have them. A full implementation won't be simple.
https://developer.mozilla.org/en-US/docs/Web/API/Node/replaceChild
Might be useful if the approach taken is to swap out the track list with an edit interface (and/or the media catalog)
For the playlists themselves: a simple struct
{"name": NAME, "ids": [IDS]}whereIDSis a list ofrowids.Adding is simple, and can be borrowed from spotify:
allow playlists to be public or not?
instead of a dedicated edit interface, add a flag to a queryset indicating that it is/not a playlist.
when it is, add a td with up, down, remove buttons
the remainder of logic is server-side
EDIT: also, if queue is a playlist, its name can be displayed in the trackinfo box, with an edit control. that pops up a dialog that allows renaming, setting public status, and deleting. no dedicated UI needed.
I still like the plan in the last comment, but one thing I hadn't thought about in that moment is that it means an edit to a playlist becomes a refresh of that playlist. none of the edits actually happen locally, but are treated as the modification and redelivery of a query.