all playlist functionality works now

This commit is contained in:
Drew Weymouth
2023-11-14 09:05:02 -08:00
parent 470fe4b31a
commit 80a3104e79
6 changed files with 22 additions and 29 deletions
+1 -8
View File
@@ -66,11 +66,6 @@ type Server interface {
MediaProvider() MediaProvider
}
type IDAndIndex struct {
ID string
Index int
}
type MediaProvider interface {
SetPrefetchCoverCallback(cb func(coverArtID string))
@@ -124,9 +119,7 @@ type MediaProvider interface {
AddPlaylistTracks(id string, trackIDsToAdd []string) error
// Some MediaProviders use ids and others indexes for removing tracks,
// so need to supply both.
RemovePlaylistTracks(id string, trackRemoveInfo []IDAndIndex) error
RemovePlaylistTracks(id string, trackIdxsToRemove []int) error
ReplacePlaylistTracks(id string, trackIDs []string) error