From 3e68bbda2908e8d5187532f66853047b25bb81cb Mon Sep 17 00:00:00 2001 From: Tordarus Date: Sat, 28 Jun 2025 13:47:16 +0200 Subject: [PATCH] added SetPlaylistPosition --- props_get.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/props_get.go b/props_get.go index 348d624..29edd4e 100644 --- a/props_get.go +++ b/props_get.go @@ -53,6 +53,10 @@ func GetPlaylist(socket string) ([]PlaylistEntry, error) { return GetProperty[[]PlaylistEntry](socket, "playlist") } +func SetPlaylistPosition(socket string, index int) error { + return SetProperty(socket, "playlist-pos", index) +} + func GetDuration(socket string) (time.Duration, error) { durationInSeconds, err := GetProperty[float64](socket, "duration") if err != nil {