-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
疑似名称过长报错 #38
Labels
bug
Something isn't working
Comments
截图一下网易云的版本号 |
更新QQ音乐到20.40+还会有这个问题吗 |
kriYamiHikari
added a commit
to kriYamiHikari/NetEase-Cloud-Music-DiscordRPC
that referenced
this issue
Dec 15, 2024
- Added string truncation to handle text overflow and prevent crashes. - Fixed a bug where text longer than 128 bytes would cause the program to crash or behave unexpectedly. - Ensured that all text sent to DiscordRPC is truncated to the 128-byte limit.
实际是因为 Discord RPC 的文本最高只能支持到 128 个字节,QQ 音乐的部分歌曲歌手或专辑名特别长,以至于超过了 128 个字节引发报错,例如下面这两首: 不知道有没有歌曲名特别长的歌曲,理论来说歌曲名、歌手名、专辑名三者任意一个超长就会引发错误。 解决方法是针对超长部分直接截断,并在后续加入省略号 (...) 来始终限制文本在128个字节以内,就可以解决这个问题了。 新的一个 Commit d3b77c6 修改了 QQ 音乐的信息获取方式,20.43 以下的版本可能会引发错误,需要将 QQ 音乐升级到最新版 (20.47) 。(已知 20.31 版本会引发错误) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: