Skip to content

Commit

Permalink
更新接口和文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Mar 18, 2020
1 parent efa2d41 commit 11e6bcb
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 49 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 更新日志
### 3.25.3 | 2020.03.18
- 更新歌词,歌手分类列表接口

- 更新文档

### 3.25.3 | 2019.11.08
- 升级依赖,去除多余依赖

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ name:歌单名字
desc:歌单描述
tags:歌单tag
tags:歌单tag ,多个用 `;` 隔开,只能用官方规定标签
```

**接口地址 :** `/playlist/update`

**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=学习`
**调用例子 :** `/playlist/update?id=24381616&name=新歌单&desc=描述&tags=欧美`

### 更新歌单描述
说明 : 登陆后调用此接口,可以单独更新用户歌单描述
Expand Down
2 changes: 1 addition & 1 deletion module/artist_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = (query, request) => {
total: true
}
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}
)
}
14 changes: 10 additions & 4 deletions module/lyric.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
// 歌词

module.exports = (query, request) => {
query.cookie.os = 'pc';
const data = {
id: query.id
id: query.id,
lv: -1,
kv: -1,
tv: -1
}
return request(
'POST', `https://music.163.com/weapi/song/lyric?lv=-1&kv=-1&tv=-1`, data,
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy}
'POST',
`https://music.163.com/api/song/lyric`,
data,
{ crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy }
)
}
}
84 changes: 42 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.25.3",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
},
"keywords": [
"网易云音乐",
"网易云",
"音乐",
"网易云音乐nodejs"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"name": "NeteaseCloudMusicApi",
"version": "3.25.4",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 20000 app.test.js --exit",
"lint-fix": "eslint --fix --ext .js app.js module/ util/ test/ "
},
"keywords": [
"网易云音乐",
"网易云",
"音乐",
"网易云音乐nodejs"
],
"husky": {
"hooks": {
"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"
}
}
}

0 comments on commit 11e6bcb

Please sign in to comment.