Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrItemNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type FeedItem ¶
type FeedItem struct { Title string `xml:"title,omitempty"` Category string `xml:"category,omitempty"` GUID string `xml:"guid,omitempty"` PubDate Time `xml:"pubDate,omitempty"` // set by processor Feed string // attributes Language string TvdbId string `xml:"tvdb,omitempty"` TvMazeId string ImdbId string `xml:"imdb,omitempty"` TmdbId string `xml:"tmdb,omitempty"` Attributes []struct { XMLName xml.Name Name string `xml:"name,attr"` Value string `xml:"value,attr"` } `xml:"attr"` }
func (*FeedItem) GetProviderData ¶
type Item ¶
type Item struct { TvdbId string `json:"TvdbId,omitempty"` TmdbId string `json:"TmdbId,omitempty"` ImdbId string `json:"ImdbId,omitempty"` Slug string `json:"Slug,omitempty"` FeedTitle string `json:"FeedTitle,omitempty"` Title string `json:"Title,omitempty"` Summary string `json:"Summary,omitempty"` Country []string `json:"Country,omitempty"` Network string `json:"Network,omitempty"` Date time.Time `json:"Date"` Year int `json:"Year,omitempty"` Runtime int `json:"Runtime,omitempty"` Rating float64 `json:"Rating,omitempty"` Votes int `json:"Votes,omitempty"` Status string `json:"Status,omitempty"` Genres []string `json:"Genres,omitempty"` Languages []string `json:"Languages,omitempty"` AiredEpisodes int `json:"AiredEpisodes,omitempty"` // additional media provider data Omdb omdb.Item `json:"Omdb,omitempty"` Tvdb tvdb.Item `json:"Tvdb,omitempty"` }
func (*Item) GetProviderData ¶
type Time ¶
Time credits: https://github.com/mrobinsn/go-newznab/blob/cd89d9c56447859fa1298dc9a0053c92c45ac7ef/newznab/structs.go#L150
func (*Time) MarshalXML ¶
func (*Time) UnmarshalXML ¶
Click to show internal directories.
Click to hide internal directories.