mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 13:52:06 +08:00
更新接口和文档
This commit is contained in:
@ -1,4 +1,9 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 3.25.3 | 2020.03.18
|
||||||
|
- 更新歌词,歌手分类列表接口
|
||||||
|
|
||||||
|
- 更新文档
|
||||||
|
|
||||||
### 3.25.3 | 2019.11.08
|
### 3.25.3 | 2019.11.08
|
||||||
- 升级依赖,去除多余依赖
|
- 升级依赖,去除多余依赖
|
||||||
|
|
||||||
|
@ -494,12 +494,12 @@ name:歌单名字
|
|||||||
|
|
||||||
desc:歌单描述
|
desc:歌单描述
|
||||||
|
|
||||||
tags:歌单tag
|
tags:歌单tag ,多个用 `;` 隔开,只能用官方规定标签
|
||||||
```
|
```
|
||||||
|
|
||||||
**接口地址 :** `/playlist/update`
|
**接口地址 :** `/playlist/update`
|
||||||
|
|
||||||
**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=学习`
|
**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=欧美`
|
||||||
|
|
||||||
### 更新歌单描述
|
### 更新歌单描述
|
||||||
说明 : 登陆后调用此接口,可以单独更新用户歌单描述
|
说明 : 登陆后调用此接口,可以单独更新用户歌单描述
|
||||||
|
@ -32,7 +32,7 @@ module.exports = (query, request) => {
|
|||||||
total: true
|
total: true
|
||||||
}
|
}
|
||||||
return request(
|
return request(
|
||||||
'POST', `https://music.163.com/weapi/artist/list`, data,
|
'POST', `https://music.163.com/api/v1/artist/list`, data,
|
||||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||||
)
|
)
|
||||||
}
|
}
|
@ -1,11 +1,17 @@
|
|||||||
// 歌词
|
// 歌词
|
||||||
|
|
||||||
module.exports = (query, request) => {
|
module.exports = (query, request) => {
|
||||||
|
query.cookie.os = 'pc';
|
||||||
const data = {
|
const data = {
|
||||||
id: query.id
|
id: query.id,
|
||||||
|
lv: -1,
|
||||||
|
kv: -1,
|
||||||
|
tv: -1
|
||||||
}
|
}
|
||||||
return request(
|
return request(
|
||||||
'POST', `https://music.163.com/weapi/song/lyric?lv=-1&kv=-1&tv=-1`, data,
|
'POST',
|
||||||
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy}
|
`https://music.163.com/api/song/lyric`,
|
||||||
|
data,
|
||||||
|
{ crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
84
package.json
84
package.json
@ -1,44 +1,44 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "3.25.3",
|
"version": "3.25.4",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
|
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
|
||||||
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
|
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"网易云音乐",
|
"网易云音乐",
|
||||||
"网易云",
|
"网易云",
|
||||||
"音乐",
|
"音乐",
|
||||||
"网易云音乐nodejs"
|
"网易云音乐nodejs"
|
||||||
],
|
],
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.js": [
|
||||||
|
"eslint --fix",
|
||||||
|
"git add"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"author": "binaryify",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"apicache": "^1.5.2",
|
||||||
|
"express": "^4.17.1",
|
||||||
|
"pac-proxy-agent": "^3.0.1",
|
||||||
|
"request": "^2.88.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^6.6.0",
|
||||||
|
"eslint-plugin-html": "^6.0.0",
|
||||||
|
"husky": "^3.0.9",
|
||||||
|
"intelli-espower-loader": "^1.0.1",
|
||||||
|
"lint-staged": "^9.4.2",
|
||||||
|
"mocha": "^6.2.2",
|
||||||
|
"power-assert": "^1.6.1"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"lint-staged": {
|
|
||||||
"*.js": [
|
|
||||||
"eslint --fix",
|
|
||||||
"git add"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"author": "binaryify",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"apicache": "^1.5.2",
|
|
||||||
"express": "^4.17.1",
|
|
||||||
"pac-proxy-agent": "^3.0.1",
|
|
||||||
"request": "^2.88.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"eslint": "^6.6.0",
|
|
||||||
"eslint-plugin-html": "^6.0.0",
|
|
||||||
"husky": "^3.0.9",
|
|
||||||
"intelli-espower-loader": "^1.0.1",
|
|
||||||
"lint-staged": "^9.4.2",
|
|
||||||
"mocha": "^6.2.2",
|
|
||||||
"power-assert": "^1.6.1"
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user