Example #1
0
func (c *Client) playlists() []string {
	plists := c.player.Playlists()
	lines := make([]string, 0, len(plists))
	for _, pl := range plists {
		lines = append(lines, serialize.Playlist(pl))
	}

	return lines
}
Example #2
0
func (c *Client) playlists(plists []*player.Playlist) {
	for _, pl := range plists {
		c.conn.WriteLine(serialize.Playlist(pl))
	}
}