From f413f978248d95d2610c7a372c5aa669e999bb2c Mon Sep 17 00:00:00 2001 From: Tordarus Date: Sat, 28 Jun 2025 14:18:56 +0200 Subject: [PATCH] added GetPlaylistPosition --- props_get.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/props_get.go b/props_get.go index 9e16063..75dc7af 100644 --- a/props_get.go +++ b/props_get.go @@ -57,6 +57,10 @@ func GetPause(socket string) (bool, error) { return GetProperty[bool](socket, "pause") } +func GetPlaylistPosition(socket string) (int, error) { + return GetProperty[int](socket, "playlist-pos") +} + func GetDuration(socket string) (time.Duration, error) { durationInSeconds, err := GetProperty[float64](socket, "duration") if err != nil {