mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add image to common structs
This commit is contained in:
parent
9f6a225caf
commit
c86595d2c6
4 changed files with 14 additions and 42 deletions
28
common.go
28
common.go
|
|
@ -1,5 +1,12 @@
|
||||||
package crunchyroll
|
package crunchyroll
|
||||||
|
|
||||||
|
type Image struct {
|
||||||
|
Height int `json:"height"`
|
||||||
|
Source string `json:"source"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Width int `json:"width"`
|
||||||
|
}
|
||||||
|
|
||||||
type Panel struct {
|
type Panel struct {
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
PromoTitle string `json:"promo_title"`
|
PromoTitle string `json:"promo_title"`
|
||||||
|
|
@ -7,24 +14,9 @@ type Panel struct {
|
||||||
Playback string `json:"playback"`
|
Playback string `json:"playback"`
|
||||||
PromoDescription string `json:"promo_description"`
|
PromoDescription string `json:"promo_description"`
|
||||||
Images struct {
|
Images struct {
|
||||||
Thumbnail [][]struct {
|
Thumbnail [][]Image `json:"thumbnail"`
|
||||||
Height int `json:"height"`
|
PosterTall [][]Image `json:"poster_tall"`
|
||||||
Source string `json:"source"`
|
PosterWide [][]Image `json:"poster_wide"`
|
||||||
Type string `json:"type"`
|
|
||||||
Width int `json:"width"`
|
|
||||||
} `json:"thumbnail"`
|
|
||||||
PosterTall [][]struct {
|
|
||||||
Width int `json:"width"`
|
|
||||||
Height int `json:"height"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Source string `json:"source"`
|
|
||||||
} `json:"poster_tall"`
|
|
||||||
PosterWide [][]struct {
|
|
||||||
Width int `json:"width"`
|
|
||||||
Height int `json:"height"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Source string `json:"source"`
|
|
||||||
} `json:"poster_wide"`
|
|
||||||
} `json:"images"`
|
} `json:"images"`
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,7 @@ type Episode struct {
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug"`
|
||||||
|
|
||||||
Images struct {
|
Images struct {
|
||||||
Thumbnail [][]struct {
|
Thumbnail [][]Image `json:"thumbnail"`
|
||||||
Width int `json:"width"`
|
|
||||||
Height int `json:"height"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Source string `json:"source"`
|
|
||||||
} `json:"thumbnail"`
|
|
||||||
} `json:"images"`
|
} `json:"images"`
|
||||||
|
|
||||||
DurationMS int `json:"duration_ms"`
|
DurationMS int `json:"duration_ms"`
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,7 @@ type MovieListing struct {
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
|
||||||
Images struct {
|
Images struct {
|
||||||
Thumbnail [][]struct {
|
Thumbnail [][]Image `json:"thumbnail"`
|
||||||
Width int `json:"width"`
|
|
||||||
Height int `json:"height"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Source string `json:"source"`
|
|
||||||
} `json:"thumbnail"`
|
|
||||||
} `json:"images"`
|
} `json:"images"`
|
||||||
|
|
||||||
DurationMS int `json:"duration_ms"`
|
DurationMS int `json:"duration_ms"`
|
||||||
|
|
|
||||||
14
video.go
14
video.go
|
|
@ -17,18 +17,8 @@ type video struct {
|
||||||
SlugTitle string `json:"slug_title"`
|
SlugTitle string `json:"slug_title"`
|
||||||
|
|
||||||
Images struct {
|
Images struct {
|
||||||
PosterTall [][]struct {
|
PosterTall [][]Image `json:"poster_tall"`
|
||||||
Height int `json:"height"`
|
PosterWide [][]Image `json:"poster_wide"`
|
||||||
Source string `json:"source"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Width int `json:"width"`
|
|
||||||
} `json:"poster_tall"`
|
|
||||||
PosterWide [][]struct {
|
|
||||||
Height int `json:"height"`
|
|
||||||
Source string `json:"source"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Width int `json:"width"`
|
|
||||||
} `json:"poster_wide"`
|
|
||||||
} `json:"images"`
|
} `json:"images"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue