func (tag *CustomPlaylistTag) String() string {
	return tag.Encode().String()
}
String implements Stringer interface.
package template
import (
	"bytes"
	"fmt"
	"strconv"
	"github.com/grafov/m3u8"
)
type CustomPlaylistTag struct {
	Number int
}
func (tag *CustomPlaylistTag) TagName() string {
	return "#CUSTOM-PLAYLIST-TAG:"
}
func (tag *CustomPlaylistTag) Decode(line string) (m3u8.CustomTag, error) {
	_, err := fmt.Sscanf(line, "#CUSTOM-PLAYLIST-TAG:%d", &tag.Number)
	return tag, err
}
func (tag *CustomPlaylistTag) SegmentTag() bool {
	return false
}
func (tag *CustomPlaylistTag) Encode() *bytes.Buffer {
	buf := new(bytes.Buffer)
	buf.WriteString(tag.TagName())
	buf.WriteString(strconv.Itoa(tag.Number))
	return buf
}