Documentation ¶
Index ¶
- Variables
- func NewLinkIdentifier(identifier *Identifier, linkId int) (string, error)
- type API
- type AvailableSeriesResponse
- type Episode
- type Identifier
- type Job
- type JobPool
- type Link
- type LinkSet
- type LinkSetEntry
- type LinkSetEntryLink
- type LoginResponse
- type Runnable
- type Series
- type SeriesWithEpisodesResponse
- type SeriesWithSeasonsResponse
- type Streams
- func (s *Streams) AvailableSeries() []*Series
- func (s *Streams) Episodes(series *Series, season int) []*Episode
- func (s *Streams) LinkUrl(linkId int) string
- func (s *Streams) Login(email string, password string) (string, error)
- func (s *Streams) ResolveLink(linkId int, session string) (string, error)
- func (s *Streams) Seasons(series *Series) []int
- type WatchedSeries
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerStaticHtml = `` /* 15453-byte string literal not displayed */
Functions ¶
func NewLinkIdentifier ¶
func NewLinkIdentifier(identifier *Identifier, linkId int) (string, error)
Types ¶
type API ¶
type API struct { Config config.Config Jobs *JobPool HtmlContent func() []byte LinkSet func() *LinkSet LinkSetRefresh func() MarkWatched func([]string) ([]string, []string) ExecuteLinkAction func(config.StreamAction, *Identifier, int) *Job ExecuteGlobalAction func(config.StreamAction) *Job ResolveLink func(linkId int) (string, error) }
type AvailableSeriesResponse ¶
type AvailableSeriesResponse struct {
Series []*Series `json:"series"`
}
type Episode ¶
type Episode struct { ID int `json:"id"` Series int `json:"series"` Season int `json:"season"` Episode int `json:"episode"` German string `json:"german"` English string `json:"english"` Description string `json:"description"` Links []*Link `json:"links"` Language struct { German bool `json:"german"` English bool `json:"english"` GerSub bool `json:"ger-sub"` } `json:"language"` }
func (Episode) LinksInLanguage ¶
type Identifier ¶
type Identifier struct { Series string `json:"series"` SeriesSlug string `json:"series_slug"` SeriesId int `json:"series_id"` Language string `json:"language"` Season int `json:"season"` Episode int `json:"episode"` EpisodeName string `json:"episode_name"` }
func IdentifierFromString ¶
func IdentifierFromString(id string) (*Identifier, error)
func LinkIdentifierFromString ¶
func LinkIdentifierFromString(idString string) (*Identifier, int, error)
func NewIdentifier ¶
func (*Identifier) AsString ¶
func (i *Identifier) AsString() (string, error)
type Job ¶
type JobPool ¶
type JobPool struct {
// contains filtered or unexported fields
}
func NewJobPool ¶
func NewJobPool() *JobPool
type LinkSet ¶
type LinkSet struct {
// contains filtered or unexported fields
}
func NewLinkSet ¶
func (*LinkSet) Entries ¶
func (l *LinkSet) Entries() []*LinkSetEntry
func (*LinkSet) GrabLinksFor ¶
func (l *LinkSet) GrabLinksFor(watched []WatchedSeries)
func (*LinkSet) GroupedEntries ¶
func (l *LinkSet) GroupedEntries() map[string][]*LinkSetEntry
type LinkSetEntry ¶
type LinkSetEntry struct { Id string `json:"id"` Series string `json:"series"` Language string `json:"language"` Season int `json:"season"` Episode int `json:"episode"` EpisodeId int `json:"episode_id"` EpisodeName string `json:"episode_name"` Filename string `json:"filename"` Links []*LinkSetEntryLink `json:"links"` }
type LinkSetEntryLink ¶
type LoginResponse ¶
type Series ¶
func (Series) AbsoluteLink ¶
Click to show internal directories.
Click to hide internal directories.