mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
v3.32.0
This commit is contained in:
parent
56168e1745
commit
f420959df5
@ -1,4 +1,9 @@
|
||||
# 更新日志
|
||||
### 3.32.0 | 2020.06.03
|
||||
- 更新排行榜接口,支持传入榜单id
|
||||
- 新增榜单顺序调整接口 [#806](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/806)
|
||||
- 完善错误提示信息
|
||||
|
||||
### 3.31.1 | 2020.05.19
|
||||
- 修复`cookie`没返回的问题 [#778](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/778)
|
||||
|
||||
|
2
app.js
2
app.js
@ -74,7 +74,7 @@ fs.readdirSync(path.join(__dirname, 'module')).reverse().forEach(file => {
|
||||
res.status(answer.status).send(answer.body)
|
||||
})
|
||||
.catch(answer => {
|
||||
console.log('[ERR]', decodeURIComponent(req.originalUrl))
|
||||
console.log('[ERR]', decodeURIComponent(req.originalUrl), {status: answer.status, body: answer.body})
|
||||
if(answer.body.code == '301') answer.body.msg = '需要登录'
|
||||
res.append('Set-Cookie', answer.cookie)
|
||||
res.status(answer.status).send(answer.body)
|
||||
|
@ -574,6 +574,17 @@ tags: 歌单标签
|
||||
|
||||
**调用例子 :** `/playlist/tags/update?id=24381616&tags=学习`
|
||||
|
||||
### 调整歌单顺序
|
||||
说明 : 登陆后调用此接口,可以根据歌单id顺序调整歌单顺序
|
||||
参数:
|
||||
**必选参数 :**
|
||||
|
||||
`ids`: 歌单id列表
|
||||
|
||||
**接口地址 :** `/playlist/order/update`
|
||||
|
||||
**调用例子 :** `/playlist/order/update?ids=[111,222]`
|
||||
|
||||
### 获取用户电台
|
||||
|
||||
说明 : 登陆后调用此接口 , 传入用户 id, 可以获取用户电台
|
||||
@ -2047,10 +2058,11 @@ MV 点赞转发评论数数据
|
||||
"33": 说唱TOP榜
|
||||
|
||||
```
|
||||
**可选参数 :** `id`: 榜单id,传入后idx将失效
|
||||
|
||||
**接口地址 :** `/top/list`
|
||||
|
||||
**调用例子 :** `/top/list?idx=6`
|
||||
**调用例子 :** `/top/list?idx=6`,`/top/list?id=2809577409`
|
||||
|
||||
返回数据如下图 :
|
||||
|
||||
|
12
module/playlist_order_update.js
Normal file
12
module/playlist_order_update.js
Normal file
@ -0,0 +1,12 @@
|
||||
// 编辑歌单顺序
|
||||
|
||||
module.exports = (query, request) => {
|
||||
query.cookie.os = 'pc'
|
||||
const data = {
|
||||
ids: query.ids
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/api/playlist/order/update`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
@ -43,11 +43,13 @@ const topList = {
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
id: topList[query.idx],
|
||||
n: 10000
|
||||
id: query.id || topList[query.idx],
|
||||
n: 1000,
|
||||
s: '5',
|
||||
shareUserId: '0',
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/weapi/v3/playlist/detail`, data,
|
||||
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy}
|
||||
'POST', `https://interface3.music.163.com/api/playlist/v4/detail`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
module.exports = (query, request) => {
|
||||
return request(
|
||||
'POST', `https://music.163.com/weapi/toplist`, {},
|
||||
'POST', `https://music.163.com/api/toplist`, {},
|
||||
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "3.31.1",
|
||||
"version": "3.32.0",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user