From f254aa2b8589a9979742f77b51c9f7fa10f5f1e6 Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 6 Nov 2019 17:54:19 +0800 Subject: [PATCH] =?UTF-8?q?v3.25.0=20=E6=96=B0=E5=A2=9E=E4=BA=91=E6=9D=91?= =?UTF-8?q?=E7=83=AD=E8=AF=84,=E6=AD=8C=E6=89=8B=E7=83=AD=E9=97=A850?= =?UTF-8?q?=E9=A6=96=E6=AD=8C=E6=9B=B2,=E7=94=B5=E5=8F=B024=E5=B0=8F?= =?UTF-8?q?=E6=97=B6=E8=8A=82=E7=9B=AE=E6=A6=9C,=E7=94=B5=E5=8F=B024?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E4=B8=BB=E6=92=AD=E6=A6=9C,=E7=94=B5?= =?UTF-8?q?=E5=8F=B0=E6=9C=80=E7=83=AD=E4=B8=BB=E6=92=AD=E6=A6=9C,?= =?UTF-8?q?=E7=94=B5=E5=8F=B0=E4=B8=BB=E6=92=AD=E6=96=B0=E4=BA=BA=E6=A6=9C?= =?UTF-8?q?,=E7=94=B5=E5=8F=B0=E4=BB=98=E8=B4=B9=E7=B2=BE=E5=93=81?= =?UTF-8?q?=E6=A6=9C=E6=8E=A5=E5=8F=A3=EF=BC=8C=E8=B0=83=E6=95=B4=E6=AD=8C?= =?UTF-8?q?=E6=89=8B=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20#626=20#606=20#624?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 9 ++++ README.MD | 7 +++ docs/README.md | 87 +++++++++++++++++++++++++++++- module/artist_list.js | 3 +- module/artist_top_song.js | 10 ++++ module/comment_hotwall_list.js | 9 ++++ module/dj_program_toplist_hours.js | 11 ++++ module/dj_toplist_hours.js | 11 ++++ module/dj_toplist_newcomer.js | 11 ++++ module/dj_toplist_pay.js | 11 ++++ module/dj_toplist_popular.js | 11 ++++ package.json | 2 +- 12 files changed, 179 insertions(+), 3 deletions(-) create mode 100644 module/artist_top_song.js create mode 100644 module/comment_hotwall_list.js create mode 100644 module/dj_program_toplist_hours.js create mode 100644 module/dj_toplist_hours.js create mode 100644 module/dj_toplist_newcomer.js create mode 100644 module/dj_toplist_pay.js create mode 100644 module/dj_toplist_popular.js diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 22cbd99..dd82357 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 e92b16c..e8bbd55 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 fef4d55..deadbc0 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 0f0b5f9..4369367 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 0000000..5db3255 --- /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 0000000..3e082c6 --- /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 0000000..8d80bbc --- /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 0000000..ac1ab86 --- /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 0000000..b3a3588 --- /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 0000000..c82802d --- /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 0000000..35fbe71 --- /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 65b817e..ad564a0 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", -- GitLab