Documentation
¶
Overview ¶
Package xmltv provides Go structures for parsing and generating XMLTV formatted data by implementing all elements of the XMLTV DTD. XMLTV is an XML-based format widely used in electronic program guides (EPG) for describing TV listings.
Index ¶
- type Actor
- type Adapter
- type Aspect
- type Audio
- type Bool
- type Category
- type Channel
- type Commentator
- type Composer
- type Country
- type Credits
- type Description
- type Director
- type DisplayName
- type EPG
- type Editor
- type EpisodeNumber
- type Guest
- type Icon
- type Image
- type ImageOrientation
- type ImageSize
- type ImageType
- type Keyword
- type Language
- type LastChance
- type Length
- type LengthUnits
- type OriginalLanguage
- type Premiere
- type Presenter
- type PreviouslyShown
- type Producer
- type Programme
- type Quality
- type Rating
- type Review
- type ReviewType
- type StarRating
- type Stereo
- type SubTitle
- type Subtitles
- type SubtitlesType
- type TV
- type Time
- type Title
- type URL
- type Value
- type Video
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
XMLName xml.Name `xml:"channel"`
ID string `xml:"id,attr"`
DisplayNames []DisplayName `xml:"display-name"`
Icons []Icon `xml:"icon,omitempty"`
URLs []URL `xml:"url,omitempty"`
}
Channel represents a channel.
type Commentator ¶
type Credits ¶
type Credits struct {
XMLName xml.Name `xml:"credits"`
Directors []Director `xml:"director,omitempty"`
Actors []Actor `xml:"actor,omitempty"`
Writers []Writer `xml:"writer,omitempty"`
Adapters []Adapter `xml:"adapter,omitempty"`
Producers []Producer `xml:"producer,omitempty"`
Composers []Composer `xml:"composer,omitempty"`
Editors []Editor `xml:"editor,omitempty"`
Presenters []Presenter `xml:"presenter,omitempty"`
Commentators []Commentator `xml:"commentator,omitempty"`
Guests []Guest `xml:"guest,omitempty"`
}
type Description ¶
type DisplayName ¶
type EpisodeNumber ¶
type ImageOrientation ¶
type ImageOrientation string
const ( ImageOrientationPortrait ImageOrientation = "P" ImageOrientationLandscape ImageOrientation = "L" )
type LastChance ¶
type Length ¶
type Length struct {
XMLName xml.Name `xml:"length"`
Units LengthUnits `xml:"units,attr"`
Text *int `xml:",chardata"`
}
type LengthUnits ¶
type LengthUnits string
const ( LengthUnitsSeconds LengthUnits = "seconds" LengthUnitsMinutes LengthUnits = "minutes" LengthUnitsHours LengthUnits = "hours" )
type OriginalLanguage ¶
type PreviouslyShown ¶
type Programme ¶
type Programme struct {
XMLName xml.Name `xml:"programme"`
Start types.XMLTVTime `xml:"start,attr"`
Stop *types.XMLTVTime `xml:"stop,attr,omitempty"`
PDCStart *types.XMLTVTime `xml:"pdc-start,attr,omitempty"`
VPSStart *types.XMLTVTime `xml:"vps-start,attr,omitempty"`
ShowView *string `xml:"showview,attr,omitempty"`
VideoPlus *string `xml:"videoplus,attr,omitempty"`
Channel string `xml:"channel,attr"`
ClumpIndex *string `xml:"clumpidx,attr,omitempty"`
Titles []Title `xml:"title"`
SubTitles []SubTitle `xml:"sub-title,omitempty"`
Descriptions []Description `xml:"desc,omitempty"`
Credits *Credits `xml:"credits,omitempty"`
Date *types.XMLTVTime `xml:"date,omitempty"`
Categories []Category `xml:"category,omitempty"`
Keywords []Keyword `xml:"keyword,omitempty"`
Language *Language `xml:"language,omitempty"`
OriginalLanguage *OriginalLanguage `xml:"orig-language,omitempty"`
Length *Length `xml:"length,omitempty"`
Icons []Icon `xml:"icon,omitempty"`
URLs []URL `xml:"url,omitempty"`
Countries []Country `xml:"country,omitempty"`
EpisodeNumbers []EpisodeNumber `xml:"episode-num,omitempty"`
Video *Video `xml:"video,omitempty"`
Audio *Audio `xml:"audio,omitempty"`
PreviouslyShown *PreviouslyShown `xml:"previously-shown,omitempty"`
Premiere *Premiere `xml:"premiere,omitempty"`
Lastchance *LastChance `xml:"last-chance,omitempty"`
IsNew types.XMLTVBool `xml:"new,omitempty"`
Subtitles []Subtitles `xml:"subtitles,omitempty"`
Ratings []Rating `xml:"rating,omitempty"`
StarRatings []StarRating `xml:"star-rating,omitempty"`
Reviews []Review `xml:"review,omitempty"`
Images []Image `xml:"image,omitempty"`
}
Programme represents a programme.
type ReviewType ¶
type ReviewType string
const ( ReviewTypeText ReviewType = "text" ReviewTypeURL ReviewType = "url" )
type StarRating ¶
type Subtitles ¶
type Subtitles struct {
XMLName xml.Name `xml:"subtitles"`
Type *SubtitlesType `xml:"type,attr,omitempty"`
Language *Language `xml:"language,omitempty"`
}
type SubtitlesType ¶
type SubtitlesType string
const ( SubtitlesTypeTeletext SubtitlesType = "teletext" SubtitlesTypeOnScreen SubtitlesType = "onscreen" SubtitlesTypeDeafSigned SubtitlesType = "deaf-signed" )
type TV ¶
type TV struct {
XMLName xml.Name `xml:"tv"`
Date *types.XMLTVTime `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"`
Channels []Channel `xml:"channel,omitempty"`
Programmes []Programme `xml:"programme,omitempty"`
}
TV represents the root element of an XMLTV document.
Click to show internal directories.
Click to hide internal directories.