mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增歌单更新播放量接口
This commit is contained in:
parent
557874dcc2
commit
ad2608494f
@ -1,4 +1,9 @@
|
||||
# 更新日志
|
||||
### 4.5.10 | 2022.03.28
|
||||
- 修复了若干问题
|
||||
|
||||
- 新增`歌单更新播放量`接口
|
||||
|
||||
### 4.5.9 | 2022.03.20
|
||||
- 修复云盘上传接口部分文件名格式上传失败的问题
|
||||
|
||||
|
@ -361,6 +361,7 @@ banner({ type:0 }).then(res=>{
|
||||
238. 歌手粉丝数量
|
||||
239. 音乐人任务(新)
|
||||
240. 内部版本接口
|
||||
241. 歌单更新播放量
|
||||
|
||||
## 更新日志
|
||||
|
||||
|
@ -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,未登录状态或者非会员返回试听片段(返回字段包含被截取的正常歌曲的开始时间和结束时间)
|
||||
|
6
interface.d.ts
vendored
6
interface.d.ts
vendored
@ -1609,3 +1609,9 @@ export function nickname_check(
|
||||
): Promise<Response>
|
||||
|
||||
export function musician_tasks_new(params: RequestBaseConfig): Promise<Response>
|
||||
|
||||
export function playlist_update_playcount(
|
||||
params: {
|
||||
id?: number | string
|
||||
} & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
18
module/playlist_update_playcount.js
Normal file
18
module/playlist_update_playcount.js
Normal file
@ -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,
|
||||
},
|
||||
)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.5.9",
|
||||
"version": "4.5.10",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user