diff --git a/episode.go b/episode.go index 247967f..712f8cb 100644 --- a/episode.go +++ b/episode.go @@ -12,10 +12,17 @@ type Episode struct { siteCache map[string]interface{} - ID string `json:"id"` - SeriesID string `json:"series_id"` - SeriesTitle string `json:"series_title"` - SeasonNumber int `json:"season_number"` + ID string `json:"id"` + ChannelID string `json:"channel_id"` + + SeriesID string `json:"series_id"` + 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"` Episode string `json:"episode"` EpisodeNumber int `json:"episode_number"` diff --git a/season.go b/season.go index 0ec0802..9021af7 100644 --- a/season.go +++ b/season.go @@ -9,24 +9,34 @@ import ( type Season struct { crunchy *Crunchyroll - ID string `json:"id"` - Title string `json:"title"` - SlugTitle string `json:"slug_title"` - SeriesID string `json:"series_id"` - SeasonNumber int `json:"season_number"` - IsComplete bool `json:"is_complete"` - Description string `json:"description"` - Keywords []string `json:"keywords"` - SeasonTags []string `json:"season_tags"` - IsMature bool `json:"is_mature"` - MatureBlocked bool `json:"mature_blocked"` - IsSubbed bool `json:"is_subbed"` - IsDubbed bool `json:"is_dubbed"` - IsSimulcast bool `json:"is_simulcast"` - SeoTitle string `json:"seo_title"` - SeoDescription string `json:"seo_description"` + ID string `json:"id"` + ChannelID string `json:"channel_id"` - Language LOCALE + Title string `json:"title"` + SlugTitle string `json:"slug_title"` + + SeriesID string `json:"series_id"` + SeasonNumber int `json:"season_number"` + + IsComplete bool `json:"is_complete"` + + Description string `json:"description"` + Keywords []string `json:"keywords"` + SeasonTags []string `json:"season_tags"` + IsMature bool `json:"is_mature"` + MatureBlocked bool `json:"mature_blocked"` + IsSubbed bool `json:"is_subbed"` + IsDubbed bool `json:"is_dubbed"` + IsSimulcast bool `json:"is_simulcast"` + + SeoTitle string `json:"seo_title"` + SeoDescription string `json:"seo_description"` + + 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