feat: video add videoVideoImage
@@ -19,12 +19,8 @@ type VideoVideo struct {
Description string `json:"description"` // Video description
Duration int `json:"duration"` // Video duration in seconds
Files videoVideoFiles `json:"files"`
- FirstFrame130 string `json:"first_frame_130"` // URL of the first frame for the corresponding width.
- FirstFrame160 string `json:"first_frame_160"` // URL of the first frame for the corresponding width.
- FirstFrame320 string `json:"first_frame_320"` // URL of the first frame for the corresponding width.
- FirstFrame640 string `json:"first_frame_640"` // URL of the first frame for the corresponding width.
- FirstFrame800 string `json:"first_frame_800"` // URL of the first frame for the corresponding width.
- FirstFrame1280 string `json:"first_frame_1280"` // URL of the first frame for the corresponding width.
+ FirstFrame []videoVideoImage `json:"first_frame"`
+ Image []videoVideoImage `json:"image"`
Height int `json:"height"` // Video height
ID int `json:"id"` // Video ID
IsFavorite bool `json:"is_favorite"`
@@ -165,18 +161,9 @@ type VideoVideoFull struct {
Views int `json:"views"` // Number of views
Width int `json:"width"`
Height int `json:"height"`
- Image []struct {
- Height int `json:"height"`
- URL string `json:"url"`
- Width int `json:"width"`
- WithPadding int `json:"with_padding"`
- } `json:"image"`
+ Image []videoVideoImage `json:"image"`
IsFavorite bool `json:"is_favorite"`
- FirstFrame []struct {
- URL string `json:"url"`
- Width int `json:"width"`
- Height int `json:"height"`
- } `json:"first_frame"`
+ FirstFrame []videoVideoImage `json:"first_frame"`
Added int `json:"added"`
CanLike int `json:"can_like"`
CanAddToFaves int `json:"can_add_to_faves"`
@@ -226,4 +213,8 @@ type VideoVideoTagInfo struct {
}
type videoVideoImage struct {
+ Height float64 `json:"height"`
+ URL string `json:"url"`
+ Width float64 `json:"width"`
+ WithPadding int `json:"with_padding"`
}
