示例#1
0
文件: cmd.go 项目: ushis/webmpc
func playlistClear(cmd *Cmd, conn *mpd.Client) (*Result, error) {
	if err := conn.PlaylistClear(cmd.Playlist); err != nil {
		return nil, err
	}
	return playlistContents(cmd, conn)
}