Skip to content

Playlist sharing across users #522

@nadiamoe

Description

@nadiamoe

gonic version: v0.16.4

Hi there!
Long time lurker of the Gonic project here, which has now regained some of my interest as recent changes to Jellyfin have unfortunately impacted a core use case for me: playlist sharing. I'm very much not a C# person myself, but I can handle Go just fine. Because of this, I would like to pitch this feature and offer my help to get it done in Gonic!

My current idea is very minimal: Allow a (potentially small) set of users to control playlists they do not own.

I've taken a quick look at the Gonic codebase, and I think this could be implemented on a first iteration by defining a playlist attribute in the likes of

#GONIC-SHARED-WITH 1,3,5

I think this should play nice with the existing attribute parser:

func decodeAttr(line string) (name, value string) {

With this list unmarshalled, it should hopefully be simple to tap into that list for consuming in

if playlist.UserID != user.ID && !playlist.IsPublic {

and for editing it in

if playlist.UserID != 0 && playlist.UserID != user.ID {

To keep the implementation small I was thinking about not exposing a method for granting access to playlists on the first iteration, and instead instruct users to add this comment manually to their m3u files.

Would love to hear your thoughts on this! If you think this could be useful, I'll be happy to spin up a PR with the suggested approach.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions