Skip to content
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

解决QQ音乐无法获取MP3格式音源的问题 #280

Closed
wants to merge 1 commit into from
Closed

解决QQ音乐无法获取MP3格式音源的问题 #280

wants to merge 1 commit into from

Conversation

winterssy
Copy link

替换QQ音源的API,可以获取MP3格式的音源了,音质比 .m4a 格式应该会有所提升。不过数字版权问题依然无解,而且这个API比较玄学,比如周董新歌 《说好不哭》 可以正常拿到 vkey ,其它很多如 《告白气球》 却不可以,搞不懂鹅厂的做法。。。
ps:我不是很懂js,照着原来的代码改的。没测试,作者merge之前先测试下有无bug~

@nondanee
Copy link
Owner

c.y.qq.com/base/fcgi-bin/fcg_music_express_mobile3.fcg 这个 API 的在注释部分有

你可以在这个基础上改

// let url =
// 'https://c.y.qq.com/base/fcgi-bin/fcg_music_express_mobile3.fcg' +
// '?g_tk=0&loginUin=0&hostUin=0&format=json&inCharset=utf8' +
// '&outCharset=utf-8&notice=0&platform=yqq&needNewCode=0' +
// '&cid=205361747&uin=0&guid=7332953645' +
// '&songmid='+ id + '&filename=C400'+ id + '.m4a'
// return request('GET', url, headers)
// .then(response => response.json())
// .then(jsonBody => {
// let vkey = jsonBody.data.items[0].vkey
// if(vkey)
// return vkey
// else
// return Promise.reject()
// })
// .catch(() => insure().qq.ticket())

还有缩进注意一下

@winterssy
Copy link
Author

没留意注释。。。尴尬😅原来已经有了,通过vscode改的缩进正常,提交之后发现出问题了,我关闭这个pr吧

@winterssy winterssy closed this Oct 17, 2019
@winterssy winterssy deleted the patch-1 branch October 17, 2019 06:24
nondanee added a commit that referenced this pull request Oct 18, 2019
@BaileyZyp
Copy link

没留意注释。。。尴尬😅原来已经有了,通过vscode改的缩进正常,提交之后发现出问题了,我关闭这个pr吧

可以分享一下你修改后的文件吗?我想学习一下!

@nondanee
Copy link
Owner

@zack66
顶上第四个 "Files changed“
https://github.com/nondanee/UnblockNeteaseMusic/pull/280/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants