mpc-extra/mpd/current.go

14 lines
199 B
Go
Raw Normal View History

2023-08-27 13:16:53 -05:00
package mpd
func GetCurrent() (*Song, error) {
if connerror != nil {
return nil, connerror
}
curr, err := conn.CurrentSong()
if err != nil {
return nil, err
}
return newSong(curr), nil
}