-
Notifications
You must be signed in to change notification settings - Fork 230
/
test.go
162 lines (160 loc) · 7.57 KB
/
test.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package emby
import "time"
type T struct {
Name string `json:"Name"`
OriginalTitle string `json:"OriginalTitle"`
ServerId string `json:"ServerId"`
Id string `json:"Id"`
Etag string `json:"Etag"`
DateCreated time.Time `json:"DateCreated"`
CanDelete bool `json:"CanDelete"`
CanDownload bool `json:"CanDownload"`
PresentationUniqueKey string `json:"PresentationUniqueKey"`
Container string `json:"Container"`
SortName string `json:"SortName"`
PremiereDate time.Time `json:"PremiereDate"`
ExternalUrls []struct {
Name string `json:"Name"`
Url string `json:"Url"`
} `json:"ExternalUrls"`
MediaSources []struct {
Protocol string `json:"Protocol"`
Id string `json:"Id"`
Path string `json:"Path"`
Type string `json:"Type"`
Container string `json:"Container"`
Size int64 `json:"Size"`
Name string `json:"Name"`
IsRemote bool `json:"IsRemote"`
RunTimeTicks int64 `json:"RunTimeTicks"`
SupportsTranscoding bool `json:"SupportsTranscoding"`
SupportsDirectStream bool `json:"SupportsDirectStream"`
SupportsDirectPlay bool `json:"SupportsDirectPlay"`
IsInfiniteStream bool `json:"IsInfiniteStream"`
RequiresOpening bool `json:"RequiresOpening"`
RequiresClosing bool `json:"RequiresClosing"`
RequiresLooping bool `json:"RequiresLooping"`
SupportsProbing bool `json:"SupportsProbing"`
MediaStreams []struct {
Codec string `json:"Codec"`
TimeBase string `json:"TimeBase"`
VideoRange string `json:"VideoRange,omitempty"`
DisplayTitle string `json:"DisplayTitle"`
NalLengthSize string `json:"NalLengthSize,omitempty"`
IsInterlaced bool `json:"IsInterlaced"`
BitRate int `json:"BitRate,omitempty"`
BitDepth int `json:"BitDepth,omitempty"`
RefFrames int `json:"RefFrames,omitempty"`
IsDefault bool `json:"IsDefault"`
IsForced bool `json:"IsForced"`
Height int `json:"Height,omitempty"`
Width int `json:"Width,omitempty"`
AverageFrameRate int `json:"AverageFrameRate,omitempty"`
RealFrameRate int `json:"RealFrameRate,omitempty"`
Profile string `json:"Profile,omitempty"`
Type string `json:"Type"`
AspectRatio string `json:"AspectRatio,omitempty"`
Index int `json:"Index"`
IsExternal bool `json:"IsExternal"`
IsTextSubtitleStream bool `json:"IsTextSubtitleStream"`
SupportsExternalStream bool `json:"SupportsExternalStream"`
Protocol string `json:"Protocol"`
PixelFormat string `json:"PixelFormat,omitempty"`
Level int `json:"Level,omitempty"`
IsAnamorphic bool `json:"IsAnamorphic,omitempty"`
CodecTag string `json:"CodecTag,omitempty"`
Language string `json:"Language,omitempty"`
DisplayLanguage string `json:"DisplayLanguage,omitempty"`
ChannelLayout string `json:"ChannelLayout,omitempty"`
Channels int `json:"Channels,omitempty"`
SampleRate int `json:"SampleRate,omitempty"`
} `json:"MediaStreams"`
Formats []interface{} `json:"Formats"`
Bitrate int `json:"Bitrate"`
RequiredHttpHeaders struct {
} `json:"RequiredHttpHeaders"`
ReadAtNativeFramerate bool `json:"ReadAtNativeFramerate"`
} `json:"MediaSources"`
ProductionLocations []string `json:"ProductionLocations"`
Path string `json:"Path"`
Overview string `json:"Overview"`
Taglines []interface{} `json:"Taglines"`
Genres []string `json:"Genres"`
CommunityRating float64 `json:"CommunityRating"`
RunTimeTicks int64 `json:"RunTimeTicks"`
ProductionYear int `json:"ProductionYear"`
RemoteTrailers []interface{} `json:"RemoteTrailers"`
ProviderIds struct {
Tmdb string `json:"Tmdb"`
Imdb string `json:"Imdb"`
} `json:"ProviderIds"`
IsFolder bool `json:"IsFolder"`
ParentId string `json:"ParentId"`
Type string `json:"Type"`
People []struct {
Name string `json:"Name"`
Id string `json:"Id"`
Role string `json:"Role"`
Type string `json:"Type"`
PrimaryImageTag string `json:"PrimaryImageTag,omitempty"`
} `json:"People"`
Studios []struct {
Name string `json:"Name"`
Id int `json:"Id"`
} `json:"Studios"`
GenreItems []struct {
Name string `json:"Name"`
Id int `json:"Id"`
} `json:"GenreItems"`
TagItems []interface{} `json:"TagItems"`
LocalTrailerCount int `json:"LocalTrailerCount"`
DisplayPreferencesId string `json:"DisplayPreferencesId"`
PrimaryImageAspectRatio float64 `json:"PrimaryImageAspectRatio"`
MediaStreams []struct {
Codec string `json:"Codec"`
TimeBase string `json:"TimeBase"`
VideoRange string `json:"VideoRange,omitempty"`
DisplayTitle string `json:"DisplayTitle"`
NalLengthSize string `json:"NalLengthSize,omitempty"`
IsInterlaced bool `json:"IsInterlaced"`
BitRate int `json:"BitRate,omitempty"`
BitDepth int `json:"BitDepth,omitempty"`
RefFrames int `json:"RefFrames,omitempty"`
IsDefault bool `json:"IsDefault"`
IsForced bool `json:"IsForced"`
Height int `json:"Height,omitempty"`
Width int `json:"Width,omitempty"`
AverageFrameRate int `json:"AverageFrameRate,omitempty"`
RealFrameRate int `json:"RealFrameRate,omitempty"`
Profile string `json:"Profile,omitempty"`
Type string `json:"Type"`
AspectRatio string `json:"AspectRatio,omitempty"`
Index int `json:"Index"`
IsExternal bool `json:"IsExternal"`
IsTextSubtitleStream bool `json:"IsTextSubtitleStream"`
SupportsExternalStream bool `json:"SupportsExternalStream"`
Protocol string `json:"Protocol"`
PixelFormat string `json:"PixelFormat,omitempty"`
Level int `json:"Level,omitempty"`
IsAnamorphic bool `json:"IsAnamorphic,omitempty"`
CodecTag string `json:"CodecTag,omitempty"`
Language string `json:"Language,omitempty"`
DisplayLanguage string `json:"DisplayLanguage,omitempty"`
ChannelLayout string `json:"ChannelLayout,omitempty"`
Channels int `json:"Channels,omitempty"`
SampleRate int `json:"SampleRate,omitempty"`
} `json:"MediaStreams"`
ImageTags struct {
Primary string `json:"Primary"`
} `json:"ImageTags"`
BackdropImageTags []string `json:"BackdropImageTags"`
Chapters []struct {
StartPositionTicks int64 `json:"StartPositionTicks"`
Name string `json:"Name"`
} `json:"Chapters"`
MediaType string `json:"MediaType"`
LockedFields []interface{} `json:"LockedFields"`
LockData bool `json:"LockData"`
Width int `json:"Width"`
Height int `json:"Height"`
}