Compare commits

...

2 Commits

Author SHA1 Message Date
33906cd4e0 Merge pull request 'NCM: MusicID 动态类型支持' (#85) from fix/ncm-metadata-musicid into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #85
2024-01-28 04:03:05 +00:00
e2d88b56dd fix: dynamic music id type
Some checks failed
continuous-integration/drone/push Build is failing
2024-01-28 03:59:17 +00:00

View File

@ -18,7 +18,7 @@ type ncmMeta interface {
type ncmMetaMusic struct {
Format string `json:"format"`
MusicID int `json:"musicId"`
MusicID interface{} `json:"musicId"` // 可能是 int (旧) 也可能是 string (新)
MusicName string `json:"musicName"`
Artist [][]interface{} `json:"artist"`
Album string `json:"album"`