aboutsummaryrefslogtreecommitdiff
path: root/types/tvdb.go
blob: 6988fead50b32c35f1d9127712ea42515e709370 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package types

type TMDBAuthData struct {
	Token string `json:"token"`
}

type TVDBAuthResponse struct {
	Status string       `json:"status"`
	Data   TMDBAuthData `json:"data"`
}

type TVDBEpisode struct {
	ID                   int      `json:"id"`
	SeriesID             int      `json:"seriesId"`
	Name                 string   `json:"name"`
	Aired                string   `json:"aired"`
	Runtime              int      `json:"runtime"`
	NameTranslations     []string `json:"nameTranslations"`
	Overview             string   `json:"overview"`
	OverviewTranslations []string `json:"overviewTranslations"`
	Image                string   `json:"image"`
	ImageType            int      `json:"imageType"`
	IsMovie              int      `json:"isMovie"`
	Number               int      `json:"number"`
	AbsoluteNumber       int      `json:"absoluteNumber"`
	SeasonNumber         int      `json:"seasonNumber"`
	LastUpdated          string   `json:"lastUpdated"`
	FinaleType           *string  `json:"finaleType"`
	AirsBeforeSeason     int      `json:"airsBeforeSeason"`
	AirsBeforeEpisode    int      `json:"airsBeforeEpisode"`
	Year                 string   `json:"year"`
}

type TVDBEpisodesData struct {
	Episodes []TVDBEpisode `json:"episodes"`
}

type TVDBEpisodesResponse struct {
	Status string           `json:"status"`
	Data   TVDBEpisodesData `json:"data"`
}