Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

云盘接口上传歌曲后相应歌曲json有3个字段是乱码 #1108

Closed
ctaoist opened this issue Jan 27, 2021 · 4 comments
Closed

云盘接口上传歌曲后相应歌曲json有3个字段是乱码 #1108

ctaoist opened this issue Jan 27, 2021 · 4 comments

Comments

@ctaoist
Copy link

ctaoist commented Jan 27, 2021

环境

  • 系统/平台: app运行在 node:lts-alpine 容器中,通过windows 10 的 chrome 打开web网页操作,歌曲也存在win10上

  • nodejs 版本: v12.13.0

  • API版本: 4.0.2

出现问题

使用云盘接口上传歌曲到云盘后,再用 /user/cloud 接口获取云盘歌曲列表,其中刚上传的歌曲中的json有3个字段 albumartistsongName 是乱码,其他字段均正常,而同样的一首歌用网易云客户端上传则没有这个问题。

ps: 是中文歌曲,歌曲.zip

重现步骤

  1. 调用 axios({method: "post", url: /cloud?time=${Date.now()},headers: {"Content-Type": "multipart/form-data",},data: formData,}) 这个上传歌曲
  2. 调用 /user/cloud?time=${Date.now()} 接口获取云盘歌曲列表,其中返回的json中刚上传的歌曲有3个字段是乱码

期待效果

现在有3个字段是乱码,期待没有乱码

@Binaryify
Copy link
Owner

可能是music-metadata这个库对中文支持不够完善的问题,晚些时间我抽空看看

@Binaryify
Copy link
Owner

Binaryify commented Jan 28, 2021

image
确实是这个库的问题,晚点我换个字段吧

@Binaryify
Copy link
Owner

好了,更新看看

@ctaoist
Copy link
Author

ctaoist commented Jan 29, 2021

确实可以了,我用python的库解析了一下,也是乱码,感觉是v1tag不存在,就会乱码?但现在已经正常了,太强了

@ctaoist ctaoist closed this as completed Jan 29, 2021
Windman1320 added a commit to Windman1320/NeteaseCloudMusicApi that referenced this issue Jan 30, 2021
修复云盘接口中文音乐信息乱码的问题 Binaryify#1108
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants