mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 15:02:08 +08:00
update: 播客声音排序接口更新,新增删除播客
This commit is contained in:
parent
efd7a7b39c
commit
2ae029fb2a
@ -1,4 +1,8 @@
|
||||
# 更新日志
|
||||
### 4.15.8 | 2024.03.29
|
||||
- 播客声音排序接口更新,补充字段
|
||||
- 新增 `删除播客`接口
|
||||
|
||||
### 4.15.7 | 2024.03.21
|
||||
- 播客分段上传
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
ids: query.ids,
|
||||
};
|
||||
}
|
||||
return request(
|
||||
"POST",
|
||||
"https://interface.music.163.com/api/content/voice/delete",
|
||||
'POST',
|
||||
'https://interface.music.163.com/api/content/voice/delete',
|
||||
data,
|
||||
{
|
||||
crypto: "weapi",
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
}
|
||||
);
|
||||
};
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -1,20 +0,0 @@
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
limit: query.limit || "200", // 每页数量
|
||||
offset: query.offset || "0", // 偏移量
|
||||
radioId: query.radioId || null, // 电台id
|
||||
programId: query.programId || "0", // 节目id
|
||||
position: query.position || "1", // 排序编号
|
||||
};
|
||||
return request(
|
||||
"POST",
|
||||
`https://interface.music.163.com/api/voice/workbench/radio/program/trans`,
|
||||
data,
|
||||
{
|
||||
crypto: "weapi",
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
}
|
||||
);
|
||||
};
|
@ -1,12 +1,14 @@
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
position: query.position,
|
||||
programId: query.programId,
|
||||
radioId: query.radioId,
|
||||
limit: query.limit || '200', // 每页数量
|
||||
offset: query.offset || '0', // 偏移量
|
||||
radioId: query.radioId || null, // 电台id
|
||||
programId: query.programId || '0', // 节目id
|
||||
position: query.position || '1', // 排序编号
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface.music.163.com/weapi/voice/workbench/radio/program/trans`,
|
||||
`https://interface.music.163.com/api/voice/workbench/radio/program/trans`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.15.7",
|
||||
"version": "4.15.8",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
@ -4277,6 +4277,9 @@ ONLINE 已发布
|
||||
**接口地址:** `/voicelist/trans`
|
||||
|
||||
**必选参数:**
|
||||
`limit`: 取出歌单数量 , 默认为 200
|
||||
|
||||
`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*200, 其中 200 为 limit 的值
|
||||
|
||||
`position`: 位置, 最小为1, 最大为歌曲数量, 超过最大则为移动到最底, 小于1报错
|
||||
|
||||
@ -4294,6 +4297,18 @@ ONLINE 已发布
|
||||
|
||||
`id`: 播客id,即voiceListId
|
||||
|
||||
### 播客删除
|
||||
|
||||
说明: 可以删除播客
|
||||
|
||||
**接口地址:** `/voice/delete`
|
||||
|
||||
**必选参数:**
|
||||
|
||||
`ids`: 播客id,即voiceListId,多个以逗号隔开
|
||||
|
||||
|
||||
|
||||
### 播客上传声音
|
||||
说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: <a href="/voice_upload.html" target="_blank">/voice_upload.html</a>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user