implement CreatePlaylist button for jellyfin

This commit is contained in:
Drew Weymouth
2025-09-22 17:22:43 -07:00
parent 6ea3499491
commit a55b7216d5
3 changed files with 6 additions and 7 deletions
@@ -1,7 +1,6 @@
package jellyfin
import (
"errors"
"image"
"io"
"math"
@@ -79,7 +78,7 @@ func (j *jellyfinMediaProvider) SetLibrary(id string) error {
}
func (j *jellyfinMediaProvider) CreatePlaylistWithTracks(name string, trackIDs []string) error {
return j.client.CreatePlaylist(name, trackIDs)
return j.client.CreatePlaylist(name, "", false, trackIDs)
}
func (j *jellyfinMediaProvider) DeletePlaylist(id string) error {
@@ -91,11 +90,11 @@ func (j *jellyfinMediaProvider) CanMakePublicPlaylist() bool {
}
func (j *jellyfinMediaProvider) EditPlaylist(id, name, description string, public bool) error {
return j.client.UpdatePlaylistMetadata(id, name, description)
return j.client.UpdatePlaylistMetadata(id, name, description, false)
}
func (j *jellyfinMediaProvider) CreatePlaylist(name, description string, public bool) error {
return errors.New("unimplemented")
return j.client.CreatePlaylist(name, description, public, nil)
}
func (j *jellyfinMediaProvider) AddPlaylistTracks(id string, trackIDsToAdd []string) error {