implement CreatePlaylist button for jellyfin
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user