From d7a64982f9902339725bf787b8fce43e0a9f8733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=89=93=E9=87=8E?= <18128966990@163.com> Date: Wed, 22 Nov 2023 17:31:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=92=AD=E5=AE=A2=E5=A3=B0?= =?UTF-8?q?=E9=9F=B3=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 15 +++++++++++++++ module/voicelist_trans.js | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 module/voicelist_trans.js diff --git a/docs/README.md b/docs/README.md index 7edde6d..7bd837a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -286,6 +286,7 @@ 268. 用户贡献条目、积分、云贝数量 269. 年度听歌报告 270. 播客声音搜索 +271. 播客声音排序 ## 安装 @@ -4295,6 +4296,20 @@ ONLINE 已发布 同上 ``` +### 播客声音排序 + +说明: 调整声音在列表中的顺序 + +**接口地址:** `/voicelist/trans` + +**必选参数:** + +`position`: 位置, 最小为1, 最大为歌曲数量, 超过最大则为最底, 小于1报错 + +`programId`: 播客声音id, 即voiceId + +`radioId`: 电台id, 可以通过 https://music.163.com/#/djradio?id=996517258 访问的djradioId, 不是voiceListId + ### 播客上传声音 说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: /voice_upload.html diff --git a/module/voicelist_trans.js b/module/voicelist_trans.js new file mode 100644 index 0000000..cf11303 --- /dev/null +++ b/module/voicelist_trans.js @@ -0,0 +1,18 @@ +module.exports = (query, request) => { + const data = { + position: query.position, + programId: query.programId, + radioId: query.radioId, + } + return request( + 'POST', + `https://interface.music.163.com/weapi/voice/workbench/radio/program/trans`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} From 4f4727e6bbb6acf0a29afe1989d12ab9902c9003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=89=93=E9=87=8E?= <18128966990@163.com> Date: Wed, 22 Nov 2023 17:42:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=92=AD=E5=AE=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 10 ++++++++++ module/voicelist_detail.js | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 module/voicelist_detail.js diff --git a/docs/README.md b/docs/README.md index 7bd837a..b28f112 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4310,6 +4310,16 @@ ONLINE 已发布 `radioId`: 电台id, 可以通过 https://music.163.com/#/djradio?id=996517258 访问的djradioId, 不是voiceListId +### 播客列表详情 + +说明: 可以获取播客封面、分类、名称、简介等 + +**接口地址:** `/voicelist/detail` + +**必选参数:** + +`id`: 播客id,即voiceListId + ### 播客上传声音 说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: /voice_upload.html diff --git a/module/voicelist_detail.js b/module/voicelist_detail.js new file mode 100644 index 0000000..a141c8e --- /dev/null +++ b/module/voicelist_detail.js @@ -0,0 +1,16 @@ +module.exports = (query, request) => { + const data = { + id: query.id, + } + return request( + 'POST', + `https://interface.music.163.com/weapi/voice/workbench/voicelist/detail`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} From f7bba48508f851c643149ccd8270032efd5776ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=89=93=E9=87=8E?= <18128966990@163.com> Date: Wed, 22 Nov 2023 17:58:14 +0800 Subject: [PATCH 3/3] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index b28f112..1171ab6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -287,6 +287,7 @@ 269. 年度听歌报告 270. 播客声音搜索 271. 播客声音排序 +272. 播客列表详情 ## 安装 @@ -4298,17 +4299,17 @@ ONLINE 已发布 ### 播客声音排序 -说明: 调整声音在列表中的顺序 +说明: 调整声音在列表中的顺序, 每个声音都有固定的序号, 例如将4的声音移动到1后, 原来的1、2、3增加为2、3、4, 其他不变 **接口地址:** `/voicelist/trans` **必选参数:** -`position`: 位置, 最小为1, 最大为歌曲数量, 超过最大则为最底, 小于1报错 +`position`: 位置, 最小为1, 最大为歌曲数量, 超过最大则为移动到最底, 小于1报错 `programId`: 播客声音id, 即voiceId -`radioId`: 电台id, 可以通过 https://music.163.com/#/djradio?id=996517258 访问的djradioId, 不是voiceListId +`radioId`: 电台id, 即voiceListId ### 播客列表详情