Documentation ¶
Index ¶
Constants ¶
View Source
const ( DocType = "<!DOCTYPE tv SYSTEM \"xmltv.dtd\">\n" TimeLayout = "20060102150405 -0700" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Id string `xml:"id,attr"` DisplayNames []LocalizedText `xml:"display-name"` Icons []ChannelIcon `xml:"icon"` }
type ChannelIcon ¶
type LocalizedText ¶
func NewText ¶
func NewText(lang, data string) LocalizedText
type Program ¶
type Program struct { ChannelNames []LocalizedText // channel name from crawler Items []Programme }
func NewProgram ¶
func NewProgram(names ...LocalizedText) *Program
type Programme ¶
type Programme struct { Start Timestamp `xml:"start,attr"` Stop Timestamp `xml:"stop,attr"` Channel string `xml:"channel,attr"` Title LocalizedText `xml:"title"` Descriptions []LocalizedText `xml:"desc,omitempty"` }
type XmlTv ¶
type XmlTv struct { XMLName string `xml:"tv"` SourceInfoUrl string `xml:"source-info-url,attr,omitempty"` SourceInfoName string `xml:"source-info-name,attr,omitempty"` GeneratorInfoName string `xml:"generator-info-name,attr,omitempty"` GeneratorInfoUrl string `xml:"generator-info-url,attr,omitempty"` Channels []Channel `xml:"channel"` Programmes []Programme `xml:"programme"` }
func (*XmlTv) AddProgram ¶
Click to show internal directories.
Click to hide internal directories.