feat(subsonic): support public playlists

When multiple people share the same instance, they might want to share
their playlists between them.

This allows people to mark playlists as public, and to listen to public
playlists from other people. Listeners will also know who owns the
playlist, to help avoid confusion and make this feature a bit nicer.

Subsonic restrict updating playlists only to owners, this honors that
behavior, but adding flexibility could be achieved easily.
This commit is contained in:
Gonzalo Arreche
2022-02-24 01:48:31 -03:00
committed by sentriz
parent 4176b9e9d4
commit 1647eaac45
3 changed files with 18 additions and 1 deletions

View File

@@ -247,6 +247,7 @@ type Playlist struct {
Comment string
TrackCount int
Items string
IsPublic bool `sql:"default: null"`
}
func (p *Playlist) GetItems() []int {