mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Added new api fields
This commit is contained in:
parent
d1235fea1a
commit
30e8663186
2 changed files with 38 additions and 21 deletions
|
|
@ -13,8 +13,15 @@ type Episode struct {
|
||||||
siteCache map[string]interface{}
|
siteCache map[string]interface{}
|
||||||
|
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
|
ChannelID string `json:"channel_id"`
|
||||||
|
|
||||||
SeriesID string `json:"series_id"`
|
SeriesID string `json:"series_id"`
|
||||||
SeriesTitle string `json:"series_title"`
|
SeriesTitle string `json:"series_title"`
|
||||||
|
SeriesSlugTitle string `json:"series_slug_title"`
|
||||||
|
|
||||||
|
SeasonID string `json:"season_id"`
|
||||||
|
SeasonTitle string `json:"season_title"`
|
||||||
|
SeasonSlugTitle string `json:"season_slug_title"`
|
||||||
SeasonNumber int `json:"season_number"`
|
SeasonNumber int `json:"season_number"`
|
||||||
|
|
||||||
Episode string `json:"episode"`
|
Episode string `json:"episode"`
|
||||||
|
|
|
||||||
12
season.go
12
season.go
|
|
@ -10,11 +10,16 @@ type Season struct {
|
||||||
crunchy *Crunchyroll
|
crunchy *Crunchyroll
|
||||||
|
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
|
ChannelID string `json:"channel_id"`
|
||||||
|
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
SlugTitle string `json:"slug_title"`
|
SlugTitle string `json:"slug_title"`
|
||||||
|
|
||||||
SeriesID string `json:"series_id"`
|
SeriesID string `json:"series_id"`
|
||||||
SeasonNumber int `json:"season_number"`
|
SeasonNumber int `json:"season_number"`
|
||||||
|
|
||||||
IsComplete bool `json:"is_complete"`
|
IsComplete bool `json:"is_complete"`
|
||||||
|
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Keywords []string `json:"keywords"`
|
Keywords []string `json:"keywords"`
|
||||||
SeasonTags []string `json:"season_tags"`
|
SeasonTags []string `json:"season_tags"`
|
||||||
|
|
@ -23,10 +28,15 @@ type Season struct {
|
||||||
IsSubbed bool `json:"is_subbed"`
|
IsSubbed bool `json:"is_subbed"`
|
||||||
IsDubbed bool `json:"is_dubbed"`
|
IsDubbed bool `json:"is_dubbed"`
|
||||||
IsSimulcast bool `json:"is_simulcast"`
|
IsSimulcast bool `json:"is_simulcast"`
|
||||||
|
|
||||||
SeoTitle string `json:"seo_title"`
|
SeoTitle string `json:"seo_title"`
|
||||||
SeoDescription string `json:"seo_description"`
|
SeoDescription string `json:"seo_description"`
|
||||||
|
|
||||||
Language LOCALE
|
AvailabilityNotes string `json:"availability_notes"`
|
||||||
|
|
||||||
|
// the locales are always empty, idk why this may change in the future
|
||||||
|
AudioLocales []LOCALE
|
||||||
|
SubtitleLocales []LOCALE
|
||||||
}
|
}
|
||||||
|
|
||||||
// SeasonFromID returns a season by its api id
|
// SeasonFromID returns a season by its api id
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue