From e425b08ef8aef4ec5cb23bb8df68741668f488e0 Mon Sep 17 00:00:00 2001 From: Tordarus Date: Sat, 28 Jun 2025 15:33:45 +0200 Subject: [PATCH] added ShufflePlaylist --- commands.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands.go b/commands.go index 487b037..c5716ad 100644 --- a/commands.go +++ b/commands.go @@ -23,6 +23,12 @@ func LoadFile(socket string, file string, flags LoadFileFlag) error { return err } +func ShufflePlaylist(socket string) error { + cmd := &Command{Command: []interface{}{"playlist-shuffle"}} + _, err := SendCommand[any](socket, cmd) + return err +} + func Quit(socket string) error { cmd := &Command{Command: []interface{}{"quit"}} _, err := SendCommand[any](socket, cmd)