diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 22cbd99890b8b6d70243adf1c6b6d08b63f8440c..dd8235780e0649273cbb432bc3edca0e6caa93bd 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,13 @@ # 更新日志 +### 3.25.0 | 2019.11.06 +- 新增 `云村热评` 接口[#626](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/626) + +- 新增 `歌手热门50首歌曲` 接口 + +- 新增`电台24小时节目榜`,`电台24小时主播榜`, `电台最热主播榜`,`电台主播新人榜`,`电台付费精品榜` 接口 [#606](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/606) + +- 调整 `歌手分类列表 ` 接口参数 [#624](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/624) + ### 3.24.2 | 2019.10.28 - 修改默认绑定 HOST [#620](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/620) diff --git a/README.MD b/README.MD index e92b16ceb973a23270d1eaba12dadee7fab2ff9f..e8bbd558ac9179f41073bbe4566255cc1ebe3700 100644 --- a/README.MD +++ b/README.MD @@ -158,6 +158,13 @@ 135. 电台 - 节目榜 136. 电台 - 新晋电台榜/热门电台榜 137. 类别热门电台 +138. 云村热评 +139. 电台24小时节目榜 +140. 电台24小时主播榜 +141. 电台最热主播榜 +142. 电台主播新人榜 +143. 电台付费精品榜 +144. 歌手热门50首歌曲 ## 环境要求 diff --git a/docs/README.md b/docs/README.md index fef4d550112dfacab1a2b958c5eb94ee5b1d65b0..deadbc042ac64557a296059b85982f4e74de5dc7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -153,6 +153,13 @@ 135. 电台 - 节目榜 136. 电台 - 新晋电台榜/热门电台榜 137. 类别热门电台 +138. 云村热评 +139. 电台24小时节目榜 +140. 电台24小时主播榜 +141. 电台最热主播榜 +142. 电台主播新人榜 +143. 电台付费精品榜 +144. 歌手热门50首歌曲 ## 安装 @@ -679,6 +686,14 @@ tags: 歌单标签 **调用例子 :** `/hot/topic?limit=30&offset=30` + +### 云村热评 +说明 : 登录后调用此接口 , 可获取云村热评 + +**接口地址 :** `/comment/hotwall/list` + +**调用例子 :** `/comment/hotwall/list` + ### 心动模式/智能播放 说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表 **必选参数 :** `id` : 歌曲 id @@ -777,6 +792,19 @@ category Code 取值: **调用例子 :** `/artist/sub?id=6452&t=1` + +### 歌手热门50首歌曲 + +说明 : 调用此接口,可获取 + +**必选参数 :** + +`id` : 歌手 id + +**接口地址 :** `/artist/top/song` + +**调用例子 :** `/artist/top/song?id=6452` + ### 收藏的歌手列表 说明 : 调用此接口,可获取收藏的歌手列表 @@ -2100,6 +2128,63 @@ MV 数据 , 数据包含 mv 名字 , 歌手 , 发布时间 , mv 视频地址等 **调用例子 :** `/dj/program/toplist?limit=1` +### 电台 - 付费精品 +说明 : 调用此接口,可获取付费精品电台 + +**可选参数 :** + +`limit` : 返回数量 , 默认为 100 (不支持 offset) + +**接口地址 :** `/dj/toplist/pay` + +**调用例子 :** `/dj/toplist/pay?limit=30` + + +### 电台 - 24小时节目榜 +说明 : 调用此接口,可获取24小时节目榜 + +**可选参数 :** + +`limit` : 返回数量 , 默认为 100 (不支持 offset) + +**接口地址 :** `/djprogram/toplist/hours` + +**调用例子 :** `/dj/program/toplist/hours?limit=1` + +### 电台 - 24小时主播榜 +说明 : 调用此接口,可获取24小时主播榜 + +**可选参数 :** + +`limit` : 返回数量 , 默认为 100 (不支持 offset) + +**接口地址 :** `/dj/toplist/hours` + +**调用例子 :** `/dj/toplist/hours?limit=30` + +### 电台 - 主播新人榜 +说明 : 调用此接口,可获取主播新人榜 + +**可选参数 :** + +`limit` : 返回数量 , 默认为 100 (不支持 offset) + +**接口地址 :** `/dj/toplist/newcomer` + +**调用例子 :** `/dj/toplist/newcomer?limit=30` + + +### 电台 - 最热主播榜 +说明 : 调用此接口,可获取最热主播榜 + +**可选参数 :** + +`limit` : 返回数量 , 默认为 100 (不支持 offset) + +**接口地址 :** `/dj/toplist/popular` + +**调用例子 :** `/dj/toplist/popular?limit=30` + ### 电台 - 新晋电台榜/热门电台榜 说明 : 登陆后调用此接口 , 可获得新晋电台榜/热门电台榜 @@ -2224,7 +2309,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009` **必选参数 :** `rid`: 电台 的 id -**接口地址 :** `/dj/detail?rid=336355127` +**接口地址 :** `/dj/detail` **调用例子 :** `/dj/detail?rid=336355127` ( 对应 ' 代码时间 ' 的详情介绍 ) diff --git a/module/artist_list.js b/module/artist_list.js index 0f0b5f98884a48e2c40ac439c1d3f06fb0d2d701..4369367a5906e2cf76a5154e0c9e85836932e4c6 100644 --- a/module/artist_list.js +++ b/module/artist_list.js @@ -25,7 +25,8 @@ module.exports = (query, request) => { const data = { categoryCode: query.cat || '1001', - initial: (query.initial || '').toUpperCase().charCodeAt() || '', + // initial: (query.initial || '').toUpperCase().charCodeAt() || '', + initial: isNaN(query.initial) ? (query.initial || '').toUpperCase().charCodeAt() || undefined : query.initial, offset: query.offset || 0, limit: query.limit || 30, total: true diff --git a/module/artist_top_song.js b/module/artist_top_song.js new file mode 100644 index 0000000000000000000000000000000000000000..5db32557b91f8f06366057030011e5feab47add5 --- /dev/null +++ b/module/artist_top_song.js @@ -0,0 +1,10 @@ +// 歌手热门 50 首歌曲 +module.exports = (query, request) => { + const data = { + id: query.id + } + return request( + 'POST', `https://music.163.com/api/artist/top/song`, data, + {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} + ) +} \ No newline at end of file diff --git a/module/comment_hotwall_list.js b/module/comment_hotwall_list.js new file mode 100644 index 0000000000000000000000000000000000000000..3e082c67352023917cea54f69df89b5d0b23a1da --- /dev/null +++ b/module/comment_hotwall_list.js @@ -0,0 +1,9 @@ +module.exports = (query, request) => { + const data = {} + return request( + 'POST', + `https://music.163.com/api/comment/hotwall/list/get`, + data, + { crypto: 'weapi', cookie: query.cookie, proxy: query.proxy } + ) +} diff --git a/module/dj_program_toplist_hours.js b/module/dj_program_toplist_hours.js new file mode 100644 index 0000000000000000000000000000000000000000..8d80bbc8502bd0b6c0764b63b3904a176c408315 --- /dev/null +++ b/module/dj_program_toplist_hours.js @@ -0,0 +1,11 @@ +// 24小时榜 +module.exports = (query, request) => { + const data = { + limit: query.limit || 100 + // 不支持 offset + } + return request( + 'POST', `https://music.163.com/api/djprogram/toplist/hours`, data, + {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} + ) +} \ No newline at end of file diff --git a/module/dj_toplist_hours.js b/module/dj_toplist_hours.js new file mode 100644 index 0000000000000000000000000000000000000000..ac1ab863b6832f823a771c7c277c1693e28dc456 --- /dev/null +++ b/module/dj_toplist_hours.js @@ -0,0 +1,11 @@ +// 24小时榜 +module.exports = (query, request) => { + const data = { + limit: query.limit || 100 + // 不支持 offset + } + return request( + 'POST', `https://music.163.com/api/dj/toplist/hours`, data, + {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} + ) +} \ No newline at end of file diff --git a/module/dj_toplist_newcomer.js b/module/dj_toplist_newcomer.js new file mode 100644 index 0000000000000000000000000000000000000000..b3a3588e5b6c599fbd5cf69609c78a8c01edd84b --- /dev/null +++ b/module/dj_toplist_newcomer.js @@ -0,0 +1,11 @@ +// 电台新人榜 +module.exports = (query, request) => { + const data = { + limit: query.limit || 100, + offset: query.offset || 0 + } + return request( + 'POST', `https://music.163.com/api/dj/toplist/newcomer`, data, + {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} + ) +} \ No newline at end of file diff --git a/module/dj_toplist_pay.js b/module/dj_toplist_pay.js new file mode 100644 index 0000000000000000000000000000000000000000..c82802dfbd8462e951417551a623c0d65972aeb5 --- /dev/null +++ b/module/dj_toplist_pay.js @@ -0,0 +1,11 @@ +// 付费精品 +module.exports = (query, request) => { + const data = { + limit: query.limit || 100 + // 不支持 offset + } + return request( + 'POST', `https://music.163.com/api/djradio/toplist/pay`, data, + {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} + ) +} \ No newline at end of file diff --git a/module/dj_toplist_popular.js b/module/dj_toplist_popular.js new file mode 100644 index 0000000000000000000000000000000000000000..35fbe71dd3018ac8e01b3eaa3738e5326c521020 --- /dev/null +++ b/module/dj_toplist_popular.js @@ -0,0 +1,11 @@ +// 24小时榜 +module.exports = (query, request) => { + const data = { + limit: query.limit || 100 + // 不支持 offset + } + return request( + 'POST', `https://music.163.com/api/dj/toplist/popular`, data, + {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} + ) +} \ No newline at end of file diff --git a/package.json b/package.json index 65b817e3923239e90716e10a43752940726583f0..ad564a0dfb72ddbd904a0b462937219ab0cf3784 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.24.2", + "version": "3.25.0", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",