func playlistAdd(cmd *Cmd, conn *mpd.Client) (*Result, error) { if err := conn.PlaylistAdd(cmd.Playlist, cmd.Uri); err != nil { return nil, err } return playlistContents(cmd, conn) }