From 10bcd07fbd6d5e8c44796312fce7ac38d90dfc3f Mon Sep 17 00:00:00 2001 From: gumengyu <1415515984yuri@gmail.com> Date: Thu, 12 Oct 2023 15:23:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=97=A5=E6=8E=A8?= =?UTF-8?q?=E6=AD=8C=E6=9B=B2=E4=B8=8D=E6=84=9F=E5=85=B4=E8=B6=A3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/v2.md | 24 ++++++++++++++++++++++++ module/recommend_songs_dislike.js | 19 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 module/recommend_songs_dislike.js diff --git a/docs/v2.md b/docs/v2.md index aa95e30..6248bee 100644 --- a/docs/v2.md +++ b/docs/v2.md @@ -1056,6 +1056,30 @@ mp3url 不能直接用 , 可通过 `/music/url` 接口传入歌曲 id 获取具 返回数据如下图 : ![每日推荐歌曲](https://raw.githubusercontent.com/Binaryify/NeteaseCloudMusicApi/master/static/%E6%8E%A8%E8%8D%90%E6%AD%8C%E6%9B%B2.png) +### 每日推荐歌曲-不感兴趣 + +说明 : 日推歌曲标记为不感兴趣( 同时会返回一个新推荐歌曲, 需要登录 ) + +**必选参数 :** `id`: 歌曲 id + +**接口地址 :** `/recommend/songs/dislike` + +**调用例子 :** `/recommend/songs/dislike?id=168091` + +返回数据 : +```json +{ + "data":{ + "name":"破碎太阳之心", + "id":2009592201, + "position":0, + "alias":[], + ... + }, + "code":200 +} +``` + ### 私人 FM 说明 : 私人 FM( 需要登录 ) diff --git a/module/recommend_songs_dislike.js b/module/recommend_songs_dislike.js new file mode 100644 index 0000000..debf074 --- /dev/null +++ b/module/recommend_songs_dislike.js @@ -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, + }, + ) +}