func playlistContents(cmd *Cmd, conn *mpd.Client) (r *Result, err error) { pl, err := conn.PlaylistContents(cmd.Playlist) if err == nil { r = NewResult("StoredPlaylist", NewStoredPlaylist(cmd.Playlist, pl)) } return }