Skip to content

Commit

Permalink
Merge pull request Binaryify#1843 from nooblong/master
Browse files Browse the repository at this point in the history
两个播客接口
  • Loading branch information
Binaryify authored Nov 22, 2023
2 parents b143af5 + f7bba48 commit b4a9c8e
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@
268. 用户贡献条目、积分、云贝数量
269. 年度听歌报告
270. 播客声音搜索
271. 播客声音排序
272. 播客列表详情

## 安装

Expand Down Expand Up @@ -4295,6 +4297,30 @@ ONLINE 已发布
同上
```

### 播客声音排序

说明: 调整声音在列表中的顺序, 每个声音都有固定的序号, 例如将4的声音移动到1后, 原来的1、2、3增加为2、3、4, 其他不变

**接口地址:** `/voicelist/trans`

**必选参数:**

`position`: 位置, 最小为1, 最大为歌曲数量, 超过最大则为移动到最底, 小于1报错

`programId`: 播客声音id, 即voiceId

`radioId`: 电台id, 即voiceListId

### 播客列表详情

说明: 可以获取播客封面、分类、名称、简介等

**接口地址:** `/voicelist/detail`

**必选参数:**

`id`: 播客id,即voiceListId

### 播客上传声音
说明: 可以上传声音到播客,例子在 `/public/voice_upload.html` 访问地址: <a href="/voice_upload.html" target="_blank">/voice_upload.html</a>

Expand Down
16 changes: 16 additions & 0 deletions module/voicelist_detail.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}
18 changes: 18 additions & 0 deletions module/voicelist_trans.js
Original file line number Diff line number Diff line change
@@ -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,
},
)
}

0 comments on commit b4a9c8e

Please sign in to comment.