added next airing episode

This commit is contained in:
Tordarus 2022-02-05 12:15:02 +01:00
parent c8669da106
commit d1cec22dcd
2 changed files with 34 additions and 32 deletions

View File

@ -93,6 +93,7 @@ const (
isAdult
userId
}
nextAiringEpisode
}`
subSelectionFuzzyDate = `{

View File

@ -10,38 +10,39 @@ type User struct {
}
type Media struct {
ID int `json:"id"`
Title MediaTitle `json:"title"`
Type MediaType `json:"type"`
Format MediaFormat `json:"format"`
Status MediaStatus `json:"status"`
Description string `json:"description"`
StartDate FuzzyDate `json:"startDate"`
EndDate FuzzyDate `json:"endDate"`
Season MediaSeason `json:"season"`
SeasonYear int `json:"seasonYear"`
SeasonInt int `json:"seasonInt"`
Episodes int `json:"episodes"`
Duration Minutes `json:"duration"`
Chapters int `json:"chapters"`
Volumes int `json:"volumes"`
CountryOfOrigin string `json:"countryOfOrigin"`
Licensed bool `json:"isLicensed"`
Source MediaSource `json:"source"`
Hashtag string `json:"hashtag"`
Trailer MediaTrailer `json:"trailer"`
UpdatedAt UnixTime `json:"updatedAt"`
CoverImage MediaCoverImage `json:"coverImage"`
BannerImage string `json:"bannerImage"`
Genres []string `json:"genres"`
Synonyms []string `json:"synonyms"`
AverageScore int `json:"averageScore"`
MeanScore int `json:"meanScore"`
Popularity int `json:"popularity"`
Locked bool `json:"isLocked"`
Trending int `json:"trending"`
Favourites int `json:"favourites"`
Tags []MediaTag `json:"tags"`
ID int `json:"id"`
Title MediaTitle `json:"title"`
Type MediaType `json:"type"`
Format MediaFormat `json:"format"`
Status MediaStatus `json:"status"`
Description string `json:"description"`
StartDate FuzzyDate `json:"startDate"`
EndDate FuzzyDate `json:"endDate"`
Season MediaSeason `json:"season"`
SeasonYear int `json:"seasonYear"`
SeasonInt int `json:"seasonInt"`
Episodes int `json:"episodes"`
Duration Minutes `json:"duration"`
Chapters int `json:"chapters"`
Volumes int `json:"volumes"`
CountryOfOrigin string `json:"countryOfOrigin"`
Licensed bool `json:"isLicensed"`
Source MediaSource `json:"source"`
Hashtag string `json:"hashtag"`
Trailer MediaTrailer `json:"trailer"`
UpdatedAt UnixTime `json:"updatedAt"`
CoverImage MediaCoverImage `json:"coverImage"`
BannerImage string `json:"bannerImage"`
Genres []string `json:"genres"`
Synonyms []string `json:"synonyms"`
AverageScore int `json:"averageScore"`
MeanScore int `json:"meanScore"`
Popularity int `json:"popularity"`
Locked bool `json:"isLocked"`
Trending int `json:"trending"`
Favourites int `json:"favourites"`
Tags []MediaTag `json:"tags"`
NextAiringEpisode AiringSchedule `json:"nextAiringEpisode"`
//TODO
}