Documentation ¶
Index ¶
- Constants
- type Anime
- func (a *Anime) EndDateFormatted() (string, error)
- func (a *Anime) GetAlternativeTitles() []string
- func (a *Anime) GetMainPicture() string
- func (a *Anime) GetMediaType() string
- func (a *Anime) GetSeason() string
- func (a *Anime) GetStatus() string
- func (a *Anime) NSFW() bool
- func (a *Anime) StartDateFormatted() (string, error)
- type AnimeResult
- type AnimeSearch
- type Plugin
Constants ¶
View Source
const (
SynopsisThreshold = 250
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anime ¶
type Anime struct { ID int `json:"id"` Title string `json:"title"` MainPicture struct { Medium string `json:"medium"` Large string `json:"large"` } `json:"main_picture"` AlternativeTitles struct { Synonyms []string `json:"synonyms"` En string `json:"en"` Ja string `json:"ja"` } `json:"alternative_titles"` StartDate string `json:"start_date"` EndDate string `json:"end_date"` Synopsis string `json:"synopsis"` Mean float64 `json:"mean"` Rank int `json:"rank"` Popularity int `json:"popularity"` Nsfw string `json:"nsfw"` MediaType string `json:"media_type"` Status string `json:"status"` Genres []struct { ID int `json:"id"` Name string `json:"name"` } `json:"genres"` NumEpisodes int `json:"num_episodes"` StartSeason struct { Year int `json:"year"` Season string `json:"season"` } `json:"start_season"` AverageEpisodeDuration int `json:"average_episode_duration"` Studios []struct { ID int `json:"id"` Name string `json:"name"` } `json:"studios"` }
func (*Anime) EndDateFormatted ¶
func (*Anime) GetAlternativeTitles ¶
func (*Anime) GetMainPicture ¶
func (*Anime) GetMediaType ¶
func (*Anime) StartDateFormatted ¶
type AnimeResult ¶
type AnimeResult struct { ID int `json:"id"` Title string `json:"title"` Nsfw string `json:"nsfw"` }
AnimeResult is an extra struct because we don't need all the fields
func (*AnimeResult) NSFW ¶
func (a *AnimeResult) NSFW() bool
type AnimeSearch ¶
type AnimeSearch struct { Results []struct { Anime AnimeResult `json:"node"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.