From 38e5a8742c138d394cc0e572eb438529cc0b9f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E6=89=93=E9=87=8E?= <18128966990@163.com> Date: Tue, 12 Sep 2023 09:19:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=8E=B7=E5=8F=96=E6=92=AD=E5=AE=A2?= =?UTF-8?q?=E9=87=8C=E9=9D=A2=E7=9A=84=E5=A3=B0=E9=9F=B3=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 15 +++++++++++++++ module/voicelist_list.js | 18 ++++++++++++++++++ public/voice_upload.html | 12 ++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 module/voicelist_list.js diff --git a/docs/README.md b/docs/README.md index af6b339..8c1ab79 100644 --- a/docs/README.md +++ b/docs/README.md @@ -276,6 +276,7 @@ 258. 验证接口-二维码检测 259. 听歌识曲 260. 根据nickname获取userid接口 +261. 播客声音列表 ## 安装 @@ -4179,6 +4180,20 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` `podcastName`: 播客名称 +### 播客声音列表 + +说明: 可以获取播客里的声音 + +**接口地址:** `/voicelist/list` + +**必选参数:** +`voiceListId`: 播客id + +**可选参数:** +`limit`: 取出歌单数量 , 默认为 200 + +`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*200, 其中 200 为 limit 的值 + ### 播客上传声音 说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: /voice_upload.html diff --git a/module/voicelist_list.js b/module/voicelist_list.js new file mode 100644 index 0000000..29daaa4 --- /dev/null +++ b/module/voicelist_list.js @@ -0,0 +1,18 @@ +module.exports = (query, request) => { + const data = { + limit: query.limit || '200', + offset: query.offset || '0', + voiceListId: query.voiceListId, + } + return request( + 'POST', + `https://interface.music.163.com/weapi/voice/workbench/voices/by/voicelist`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} diff --git a/public/voice_upload.html b/public/voice_upload.html index a20bbae..be7db4f 100644 --- a/public/voice_upload.html +++ b/public/voice_upload.html @@ -13,6 +13,11 @@