-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsdl.go
More file actions
37 lines (33 loc) · 1.08 KB
/
Copy pathsdl.go
File metadata and controls
37 lines (33 loc) · 1.08 KB
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
package main
import "time"
type SDLResponse struct {
Status bool `json:"status"`
Results []Result `json:"results"`
Subtitles []Subtitle `json:"subtitles"`
}
type Result struct {
SdID int `json:"sd_id"`
Type string `json:"type"`
Name string `json:"name"`
ImdbID string `json:"imdb_id"`
TmdbID int `json:"tmdb_id"`
FirstAirDate time.Time `json:"first_air_date"`
Slug string `json:"slug"`
ReleaseDate *time.Time `json:"release_date"`
Year int `json:"year"`
}
type Subtitle struct {
ReleaseName string `json:"release_name"`
Name string `json:"name"`
Lang string `json:"lang"`
Author string `json:"author"`
URL string `json:"url"`
SubtitlePage string `json:"subtitlePage"`
Season int `json:"season"`
Episode *int `json:"episode"`
Language string `json:"language"`
Hi bool `json:"hi"`
EpisodeFrom *int `json:"episode_from"`
EpisodeEnd int `json:"episode_end"`
FullSeason bool `json:"full_season"`
}