mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 15:43:10 +00:00
新增类别热门电台接口 #607
This commit is contained in:
parent
6d96d1065b
commit
c0ff65b8d4
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 3.24.0 | 2019.10.22
|
||||||
|
- 新增`类别热门电台` 接口 [#607](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/607)
|
||||||
|
|
||||||
### 3.23.0 | 2019.10.16
|
### 3.23.0 | 2019.10.16
|
||||||
- 修复电台 banner 接口无数据问题[#601](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/601)
|
- 修复电台 banner 接口无数据问题[#601](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/601)
|
||||||
|
|
||||||
|
@ -157,6 +157,7 @@
|
|||||||
134. 电台 - 节目详情
|
134. 电台 - 节目详情
|
||||||
135. 电台 - 节目榜
|
135. 电台 - 节目榜
|
||||||
136. 电台 - 新晋电台榜/热门电台榜
|
136. 电台 - 新晋电台榜/热门电台榜
|
||||||
|
137. 类别热门电台
|
||||||
|
|
||||||
## 环境要求
|
## 环境要求
|
||||||
|
|
||||||
|
@ -152,6 +152,7 @@
|
|||||||
134. 电台 - 节目详情
|
134. 电台 - 节目详情
|
||||||
135. 电台 - 节目榜
|
135. 电台 - 节目榜
|
||||||
136. 电台 - 新晋电台榜/热门电台榜
|
136. 电台 - 新晋电台榜/热门电台榜
|
||||||
|
137. 类别热门电台
|
||||||
|
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
@ -2104,6 +2105,20 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等
|
|||||||
|
|
||||||
**调用例子 :** `/dj/toplist?type=hot` `/dj/toplist?type=new&limit=1`
|
**调用例子 :** `/dj/toplist?type=hot` `/dj/toplist?type=new&limit=1`
|
||||||
|
|
||||||
|
### 电台 - 类别热门电台
|
||||||
|
|
||||||
|
**可选参数 :**
|
||||||
|
|
||||||
|
`limit` : 返回数量 , 默认为 30
|
||||||
|
|
||||||
|
`offset` : 偏移数量,用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认为 0
|
||||||
|
|
||||||
|
`cateId`: 类别 id,可通过 `/dj/category/recommend` 接口获取
|
||||||
|
|
||||||
|
**接口地址 :** `/dj/radio/hot`
|
||||||
|
|
||||||
|
**调用例子 :** `/dj/radio/hot?cateId=2001`(创作|翻唱) `/dj/radio/hot?cateId=10002` (3D|电子)
|
||||||
|
|
||||||
### 电台 - 推荐
|
### 电台 - 推荐
|
||||||
|
|
||||||
说明 : 登陆后调用此接口 , 可获得推荐电台
|
说明 : 登陆后调用此接口 , 可获得推荐电台
|
||||||
|
13
module/dj_radio_hot.js
Normal file
13
module/dj_radio_hot.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// 类别热门电台
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
cateId: query.cateId,
|
||||||
|
limit: query.limit || 30,
|
||||||
|
offset: query.offset || 0
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST', `https://music.163.com/api/djradio/hot`, data,
|
||||||
|
{ crypto: 'weapi', cookie: query.cookie, proxy: query.proxy }
|
||||||
|
)
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "3.23.0",
|
"version": "3.24.0",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user