示例#1
0
文件: cmd.go 项目: ushis/webmpc
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)
}