added GetPlaylist()
This commit is contained in:
@ -49,6 +49,10 @@ func GetFileFormat(socket string) (string, error) {
|
||||
return GetProperty[string](socket, "file-format")
|
||||
}
|
||||
|
||||
func GetPlaylist(socket string) ([]PlaylistEntry, error) {
|
||||
return GetProperty[[]PlaylistEntry](socket, "playlist")
|
||||
}
|
||||
|
||||
func GetDuration(socket string) (time.Duration, error) {
|
||||
durationInSeconds, err := GetProperty[float64](socket, "duration")
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user