mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
feat: 新增日推歌曲不感兴趣接口
This commit is contained in:
parent
f37a8dae41
commit
10bcd07fbd
24
docs/v2.md
24
docs/v2.md
@ -1056,6 +1056,30 @@ mp3url 不能直接用 , 可通过 `/music/url` 接口传入歌曲 id 获取具
|
||||
返回数据如下图 :
|
||||

|
||||
|
||||
### 每日推荐歌曲-不感兴趣
|
||||
|
||||
说明 : 日推歌曲标记为不感兴趣( 同时会返回一个新推荐歌曲, 需要登录 )
|
||||
|
||||
**必选参数 :** `id`: 歌曲 id
|
||||
|
||||
**接口地址 :** `/recommend/songs/dislike`
|
||||
|
||||
**调用例子 :** `/recommend/songs/dislike?id=168091`
|
||||
|
||||
返回数据 :
|
||||
```json
|
||||
{
|
||||
"data":{
|
||||
"name":"破碎太阳之心",
|
||||
"id":2009592201,
|
||||
"position":0,
|
||||
"alias":[],
|
||||
...
|
||||
},
|
||||
"code":200
|
||||
}
|
||||
```
|
||||
|
||||
### 私人 FM
|
||||
|
||||
说明 : 私人 FM( 需要登录 )
|
||||
|
19
module/recommend_songs_dislike.js
Normal file
19
module/recommend_songs_dislike.js
Normal file
@ -0,0 +1,19 @@
|
||||
// 每日推荐歌曲-不感兴趣
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
resId: query.id, // 日推歌曲id
|
||||
resType: 4,
|
||||
sceneType: 1,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/weapi/v2/discovery/recommend/dislike`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user