-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.go
29 lines (26 loc) · 985 Bytes
/
video.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
package gotidal
// Video represents an individula video.
type Video struct {
videoResource `json:"resource"`
}
type videoResource struct {
ID string `json:"id"`
Title string `json:"title"`
Version string `json:"version"`
Images []Image `json:"image"`
Album AlbumResource `json:"album"`
ReleaseDate string `json:"releaseDate"`
Artists []artistResource `json:"artists"`
Duration int `json:"duration"`
TrackNumber int `json:"trackNumber"`
VolumeNumber int `json:"volumeNumber"`
ISRC string `json:"isrc"`
Copyright string `json:"copyright"`
Properties VideoProperties `json:"properties"`
TidalURL string `json:"tidalUrl"`
ProviderInfo ProviderInfo `json:"providerInfo"`
}
type VideoProperties struct {
Content []string `json:"content"`
VideoType string `json:"video-type"`
}