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

请添加 320Kbps 音频支持 #5

Closed
legendtang opened this issue May 3, 2015 · 7 comments
Closed

请添加 320Kbps 音频支持 #5

legendtang opened this issue May 3, 2015 · 7 comments

Comments

@legendtang
Copy link

@legendtang legendtang commented May 3, 2015

https://github.com/darknessomi/musicbox/blob/master/NEMbox/api.py

建议看一下这位修改版的 encrypted_id 实现,原作者好像去掉了

@n374
Copy link
Owner

@n374 n374 commented May 3, 2015

很多被要求删除的repo都用到这个加密算法
如:https://www.v2ex.com/t/131959https://www.v2ex.com/t/123375

为了保证项目长久存活,这个加密算法我不会加入
但我会对相关代码进行调整,需要320K请自行实现
320K加密算法:
https://github.com/yanunon/NeteaseCloudMusic/wiki/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90API%E5%88%86%E6%9E%90#5-%E4%B8%8B%E8%BD%BD%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6

@legendtang
Copy link
Author

@legendtang legendtang commented May 3, 2015

支持。按你说的把代码进一步模块化吧,这样调用加密方法比较方便

@n374
Copy link
Owner

@n374 n374 commented May 7, 2015

已失效

0bd020b

在播放歌曲时,neteasecloudmusic/netease_music_browser.py中的get_better_quality_music函数
会尝试调用neteasecloudmusic文件夹下的encrypted.py文件中的encrypted_id(id)函数,
获取320K码率的URL,失败则依次尝试160K/96K码率

要播放高码率音乐,只需要手动在neteasecloudmusic文件夹下新建encrypted.py,包含encrypted_id(id)函数
具体代码可以参照https://github.com/yanunon/NeteaseCloudMusic/wiki/%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90API%E5%88%86%E6%9E%90#5-%E4%B8%8B%E8%BD%BD%E9%9F%B3%E4%B9%90%E6%96%87%E4%BB%B6

@legendtang
Copy link
Author

@legendtang legendtang commented May 7, 2015

Thanks!

@legendtang legendtang closed this May 7, 2015
legendtang added a commit to legendtang/dmusic-plugin-NeteaseCloudMusic that referenced this issue May 7, 2015
@wangzk
Copy link

@wangzk wangzk commented May 11, 2015

Thanks!

@mawanglin2008
Copy link

@mawanglin2008 mawanglin2008 commented May 14, 2015

Thanks

@n374
Copy link
Owner

@n374 n374 commented Dec 17, 2016

该算法已经失效,会导致无法播放,删除即可

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.