mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
update:新增私人 FM 模式选择接口
This commit is contained in:
parent
22ac50621c
commit
35e1807c4c
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 4.14.2 | 2024.01.23
|
||||||
|
- 新增 `私人 FM 模式选择` 接口
|
||||||
|
|
||||||
### 4.14.2 | 2024.01.23
|
### 4.14.2 | 2024.01.23
|
||||||
- 文档自启动
|
- 文档自启动
|
||||||
|
|
||||||
|
17
README.MD
17
README.MD
@ -61,6 +61,14 @@ windows 下使用 git-bash 或者 cmder 等终端执行以下命令:
|
|||||||
$ set PORT=4000 && node app.js
|
$ set PORT=4000 && node app.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## npx 方式运行
|
||||||
|
可在终端直接执行
|
||||||
|
```bash
|
||||||
|
npx NeteaseCloudMusicApi@latest
|
||||||
|
```
|
||||||
|
使用此命令,可直接启动服务,无需下载或者 clone 项目
|
||||||
|
|
||||||
|
|
||||||
## Vercel 部署
|
## Vercel 部署
|
||||||
|
|
||||||
v4.0.8 加入了 Vercel 配置文件,可以直接在 Vercel 下部署了,不需要自己的服务器
|
v4.0.8 加入了 Vercel 配置文件,可以直接在 Vercel 下部署了,不需要自己的服务器
|
||||||
@ -406,10 +414,13 @@ banner({ type:0 }).then(res=>{
|
|||||||
268. 用户贡献条目、积分、云贝数量
|
268. 用户贡献条目、积分、云贝数量
|
||||||
269. 年度听歌报告
|
269. 年度听歌报告
|
||||||
270. 播客声音搜索
|
270. 播客声音搜索
|
||||||
|
271. 播客声音排序
|
||||||
|
272. 播客列表详情
|
||||||
|
273. 本地歌曲文件匹配网易云歌曲信息
|
||||||
|
274. 歌曲音质详情
|
||||||
|
275. 歌曲红心数量
|
||||||
|
276. 私人 FM 模式选择
|
||||||
|
|
||||||
## 更新日志
|
|
||||||
|
|
||||||
[changelog](https://github.com/Binaryify/NeteaseCloudMusicApi/blob/master/CHANGELOG.MD)
|
|
||||||
|
|
||||||
## 单元测试
|
## 单元测试
|
||||||
|
|
||||||
|
24
module/personal_fm_mode.js
Normal file
24
module/personal_fm_mode.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// 私人FM - 模式选择
|
||||||
|
|
||||||
|
// aidj, DEFAULT, FAMILIAR, EXPLORE, SCENE_RCMD ( EXERCISE, FOCUS, NIGHT_EMO )
|
||||||
|
// 来不及解释这几个了
|
||||||
|
|
||||||
|
module.exports = (query, request) => {
|
||||||
|
const data = {
|
||||||
|
mode: query.mode,
|
||||||
|
subMode: query.submode,
|
||||||
|
limit: query.limit || 3,
|
||||||
|
}
|
||||||
|
return request(
|
||||||
|
'POST',
|
||||||
|
`https://interface3.music.163.com/eapi/v1/radio/get`,
|
||||||
|
data,
|
||||||
|
{
|
||||||
|
crypto: 'weapi',
|
||||||
|
cookie: query.cookie,
|
||||||
|
proxy: query.proxy,
|
||||||
|
realIP: query.realIP,
|
||||||
|
url: '/api/v1/radio/get',
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "4.14.2",
|
"version": "4.15.0",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
|
@ -291,6 +291,7 @@
|
|||||||
273. 本地歌曲文件匹配网易云歌曲信息
|
273. 本地歌曲文件匹配网易云歌曲信息
|
||||||
274. 歌曲音质详情
|
274. 歌曲音质详情
|
||||||
275. 歌曲红心数量
|
275. 歌曲红心数量
|
||||||
|
276. 私人 FM 模式选择
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
@ -4539,6 +4540,20 @@ qrCodeStatus:20,detailReason:0 验证成功qrCodeStatus:21,detailReason:0 二
|
|||||||
|
|
||||||
**调用例子:** `/song/red/count?id=186016`
|
**调用例子:** `/song/red/count?id=186016`
|
||||||
|
|
||||||
|
### 私人 FM 模式选择
|
||||||
|
|
||||||
|
说明: 调用此接口返回私人 FM 内容, 并可以选择模式
|
||||||
|
|
||||||
|
**必选参数:**
|
||||||
|
|
||||||
|
`mode`: 模式 (aidj, DEFAULT, FAMILIAR, EXPLORE, SCENE_RCMD)
|
||||||
|
|
||||||
|
**可选参数:**
|
||||||
|
|
||||||
|
`submode`: 当 mode 为 SCENE_RCMD 是可为 ( EXERCISE, FOCUS, NIGHT_EMO )
|
||||||
|
|
||||||
|
**接口地址:** `/personal/fm/mode`
|
||||||
|
|
||||||
## 离线访问此文档
|
## 离线访问此文档
|
||||||
|
|
||||||
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
|
||||||
|
Loading…
x
Reference in New Issue
Block a user