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

无法获取部分音乐播放链接 #12

Closed
wifi-left opened this issue Aug 29, 2022 · 6 comments
Closed

无法获取部分音乐播放链接 #12

wifi-left opened this issue Aug 29, 2022 · 6 comments

Comments

@wifi-left
Copy link

无法获取部分音乐播放链接

@UPman24
Copy link

UPman24 commented Jan 17, 2023

找到 app => service => playUrl.ts 替换一下接口,就能同时下载免费和付费歌曲了

const BaseService = require('./BaseService')

export default class PlayUrl extends BaseService {
  async getPlayUrl (mid, br = '128kmp3') {
    return this.commonRequest(`http://www.kuwo.cn/api/v1/www/music/playUrl?mid=${mid}&type=convert_url3&br=${br}`)
  }
}

type为 convert_url3 时,免费/付费音乐都可以听
br为音质,可选 128kmp3、192kmp3 和 320kmp3
接口/kuwo/url?mid=162457325&br=128kmp3

npm run ci
npm run start
这样就可以了

@QiuYaohong
Copy link
Owner

thanks, 根据你的提示已 fix

1 similar comment
@QiuYaohong
Copy link
Owner

thanks, 根据你的提示已 fix

@wifi-left
Copy link
Author

哦,还真是,感谢~
我一直以为web端api不能这么搞了,所以用了客户端的api(不过客户端的api倒一直都很稳定,接口都没换)

@wifi-left
Copy link
Author

更生草的是,客户端api获取到的永远是最高音质...

@QiuYaohong
Copy link
Owner

QiuYaohong commented Jan 18, 2023 via email

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

No branches or pull requests

3 participants