Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sharing playlists across multiple users #525

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

nadiamoe
Copy link
Contributor

@nadiamoe nadiamoe commented Jul 3, 2024

This is my take at #522, implementing the easiest functional approach to sharing playlists by specifying a list of users that can edit another user's playlist.

For now, there is no UI for "inviting" users, the m3u file needs to be edited by hand. Users with whom a playlist has been shared can add/remove items from it, but not delete the playlist itself.

Includes commits from #524

@@ -122,6 +140,21 @@ func (s *Store) Read(relPath string) (*Playlist, error) {
playlist.Comment = value
case attrIsPublic:
playlist.IsPublic, _ = strconv.ParseBool(value)
case attrSharedWith:
sharedWith := strings.Split(value, ",")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently thinking whether it would be better for this to be a comma-separated list (as it is now), or if we should use the comment multiple times 🤔

#GONIC-NAME:"Roobre"
#GONIC-COMMENT:""
#GONIC-IS-PUBLIC:"false"
#GONIC-SHARED-WITH:"2"
#GONIC-SHARED-WITH:"3"

The latter sounds easier to parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant