From 6e3dd0f7872ba2a1bb29cda86d85b46316c579b7 Mon Sep 17 00:00:00 2001 From: piratf Date: Mon, 7 Oct 2024 17:14:30 +0800 Subject: [PATCH] change type of Name in CollectionMeta from int to string, fix error:json: cannot unmarshal string into Go struct field CollectionMeta.data.meta.name of type int --- video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video.go b/video.go index c72c2bb..2dff53d 100644 --- a/video.go +++ b/video.go @@ -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"` // 合集内视频数量