Skip to content

Commit

Permalink
change type of Name in CollectionMeta from int to string, fix error:j…
Browse files Browse the repository at this point in the history
…son: cannot unmarshal string into Go struct field CollectionMeta.data.meta.name of type int
  • Loading branch information
piratf committed Oct 7, 2024
1 parent f678f19 commit 6e3dd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ type CollectionMeta struct {
Covr string `json:"covr"` // 合集封面 URL
Description string `json:"description"` // 合集描述
Mid int `json:"mid"` // UP 主 ID
Name int `json:"name"` // 合集标题
Name string `json:"name"` // 合集标题
Ptime int `json:"ptime"` // 发布时间。Unix 时间戳
SeasonId int `json:"season_id"` // 合集 ID
Total int `json:"total"` // 合集内视频数量
Expand Down

0 comments on commit 6e3dd0f

Please sign in to comment.