Documentation
¶
Index ¶
- Constants
- func Unmarshal(data []byte, v interface{}) error
- type Actor
- type Audio
- type Channel
- type Credits
- type EpisodeNum
- type Icon
- type Length
- type PreviouslyShown
- type Program
- type Rating
- type Review
- type ReviewType
- type StdLangElement
- type SubtitleType
- type Subtitles
- type TimeUnit
- type Tv
- type Video
Constants ¶
View Source
const DateTimeFormat = "20060102150405 -0700"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Channel ¶
type Channel struct { DisplayName *StdLangElement `xml:"display-name"` Icon *Icon `xml:"icon,omitempty"` URL string `xml:"url,omitempty"` Id string `xml:"id,attr"` }
type Credits ¶
type Credits struct { Directors []string `xml:"director,omitempty"` Actors []*Actor `xml:"actor,omitempty"` Writers []string `xml:"writer,omitempty"` Adapters []string `xml:"adapter,omitempty"` Producers []string `xml:"producer,omitempty"` Composers []string `xml:"composer,omitempty"` Editors []string `xml:"editor,omitempty"` Presenters []string `xml:"presenter,omitempty"` Commentators []string `xml:"commentator,omitempty"` Guests []string `xml:"guest,omitempty"` }
type EpisodeNum ¶
type PreviouslyShown ¶
type Program ¶
type Program struct { Title *StdLangElement `xml:"title"` SubTitle *StdLangElement `xml:"sub-title,omitempty"` Desc *StdLangElement `xml:"desc,omitempty"` Credits *Credits `xml:"credits,omitempty"` Date string `xml:"date,omitempty"` Categories []*StdLangElement `xml:"category,omitempty"` Keywords []*StdLangElement `xml:"keyword,omitempty"` Language *StdLangElement `xml:"language,omitempty"` OrigLanguage *StdLangElement `xml:"orig-language,omitempty"` Length *Length `xml:"length,omitempty"` Icon *Icon `xml:"icon,omitempty"` URL string `xml:"url,omitempty"` Country *StdLangElement `xml:"country,omitempty"` EpisodeNum *EpisodeNum `xml:"episode-num,omitempty"` Video *Video `xml:"video,omitempty"` Audio *Audio `xml:"audio,omitempty"` PreviouslyShown string `xml:"previously-shown,omitempty"` Premiere *StdLangElement `xml:"premiere,omitempty"` LastChance *StdLangElement `xml:"last-chance,omitempty"` New string `xml:"new,omitempty"` Subtitles []*Subtitles `xml:"subtitles,omitempty"` Rating []*Rating `xml:"rating,omitempty"` StarRating []*Rating `xml:"star-rating,omitempty"` Review []*Review `xml:"review,omitempty"` Start string `xml:"start,attr"` Stop string `xml:"stop,attr,omitempty"` PdcStart string `xml:"pdc-start,attr,omitempty"` VpsStart string `xml:"vps-start,attr,omitempty"` ShowView string `xml:"showview,attr,omitempty"` VideoPlus string `xml:"videoplus,attr,omitempty"` Channel string `xml:"channel,attr"` ClumpIdx string `xml:"clumpidx,attr,omitempty"` }
type Review ¶
type Review struct { Text string Type ReviewType `xml:"type,attr"` Source string `xml:"source,attr,omitempty"` Reviewer string `xml:"reviewer,attr,omitempty"` Lang string `xml:"lang,attr,omitempty"` }
type StdLangElement ¶
type SubtitleType ¶
type SubtitleType string
const ( TeleText SubtitleType = "teletext" OnScreen SubtitleType = "onscreen" DeafSigned SubtitleType = "deaf-signed" )
type Subtitles ¶
type Subtitles struct { Language *StdLangElement `xml:"language,omitempty"` Type SubtitleType `xml:"type,omitempty"` }
type Tv ¶
type Tv struct { XMLName xml.Name `xml:"tv"` Channels []*Channel `xml:"channel"` Programs []*Program `xml:"programme"` Date string `xml:"date,attr,omitempty"` SourceInfoUrl string `xml:"source-info-url,attr,omitempty"` SourceInfoName string `xml:"source-info-name,attr,omitempty"` SourceDataURL string `xml:"source-data-url,attr,omitempty"` GeneratorInfoName string `xml:"generator-info-name,attr,omitempty"` GeneratorInfoURL string `xml:"generator-info-url,attr,omitempty"` }
func NewXMLTVFile ¶
func NewXMLTVFile() *Tv
Click to show internal directories.
Click to hide internal directories.