Comments (6)
找到 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
这样就可以了
from kuwomusicapi.
thanks, 根据你的提示已 fix
from kuwomusicapi.
thanks, 根据你的提示已 fix
from kuwomusicapi.
哦,还真是,感谢~
我一直以为web端api不能这么搞了,所以用了客户端的api(不过客户端的api倒一直都很稳定,接口都没换)
from kuwomusicapi.
更生草的是,客户端api获取到的永远是最高音质...
from kuwomusicapi.
from kuwomusicapi.
Related Issues (20)
- 可以适配一下vercel吗
- Releases?
- 修复音乐不能播放的问题 HOT 6
- 获取歌词改用酷我电脑客户端 HOT 1
- Internal Server Error, real status: 500 HOT 3
- 关于日志文件无法自动删除问题 HOT 20
- 搜索接口参数过时 HOT 7
- 搜索接口请求所需Header再次发生变化 HOT 83
- 尝试修复一点bug HOT 34
- 搜索接口不能使用了 HOT 15
- 提交一个新的搜索API
- debian10要装什么版本的node和npm HOT 2
- 好像不能获取vip歌曲了 HOT 10
- The request is illegal
- banner图视乎不行了
- 请求接口的时候会随机崩溃 HOT 6
- 请求接口的时候会随机崩溃
- music/results HOT 2
- 播放接口参数错误~ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuwomusicapi.