From ad2608494f80e4c3f572a3880538cbddb8495a9e Mon Sep 17 00:00:00 2001 From: binaryify Date: Mon, 28 Mar 2022 14:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=AD=8C=E5=8D=95=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=92=AD=E6=94=BE=E9=87=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 5 +++++ README.MD | 1 + docs/README.md | 16 +++++++++++++++- interface.d.ts | 6 ++++++ module/playlist_update_playcount.js | 18 ++++++++++++++++++ package.json | 2 +- 6 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 module/playlist_update_playcount.js diff --git a/CHANGELOG.MD b/CHANGELOG.MD index c3f76d3..d31eba7 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,9 @@ # 更新日志 +### 4.5.10 | 2022.03.28 +- 修复了若干问题 + +- 新增`歌单更新播放量`接口 + ### 4.5.9 | 2022.03.20 - 修复云盘上传接口部分文件名格式上传失败的问题 diff --git a/README.MD b/README.MD index cef0541..89aa99d 100644 --- a/README.MD +++ b/README.MD @@ -361,6 +361,7 @@ banner({ type:0 }).then(res=>{ 238. 歌手粉丝数量 239. 音乐人任务(新) 240. 内部版本接口 +241. 歌单更新播放量 ## 更新日志 diff --git a/docs/README.md b/docs/README.md index 91d2237..aa07c4f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -256,7 +256,7 @@ 238. 歌手粉丝数量 239. 音乐人任务(新) 240. 内部版本接口 - +241. 歌单更新播放量 ## 安装 @@ -1363,6 +1363,20 @@ tags: 歌单标签 **调用例子 :** `/playlist/detail/dynamic?id=24381616` + +### 歌单更新播放量 + +说明 : 调用后可更新歌单播放量 + +**必选参数 :** `id` : 歌单 id + +**接口地址 :** `/playlist/update/playcount` + +**调用例子 :** `/playlist/update/playcount?id=24381616` + + + + ### 获取音乐 url 说明 : 使用歌单详情接口后 , 能得到的音乐的 id, 但不能得到的音乐 url, 调用此接口, 传入的音乐 id( 可多个 , 用逗号隔开 ), 可以获取对应的音乐的 url,未登录状态或者非会员返回试听片段(返回字段包含被截取的正常歌曲的开始时间和结束时间) diff --git a/interface.d.ts b/interface.d.ts index ce8b294..67e9ebb 100644 --- a/interface.d.ts +++ b/interface.d.ts @@ -1609,3 +1609,9 @@ export function nickname_check( ): Promise export function musician_tasks_new(params: RequestBaseConfig): Promise + +export function playlist_update_playcount( + params: { + id?: number | string + } & RequestBaseConfig, +): Promise diff --git a/module/playlist_update_playcount.js b/module/playlist_update_playcount.js new file mode 100644 index 0000000..4bf5e30 --- /dev/null +++ b/module/playlist_update_playcount.js @@ -0,0 +1,18 @@ +// 歌单打卡 + +module.exports = (query, request) => { + const data = { + id: query.id, + } + return request( + 'POST', + `https://music.163.com/api/playlist/update/playcount`, + data, + { + crypto: 'weapi', + cookie: query.cookie, + proxy: query.proxy, + realIP: query.realIP, + }, + ) +} diff --git a/package.json b/package.json index f368ef0..c4af788 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "4.5.9", + "version": "4.5.10", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",