Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
修复推荐歌单和网易出品mv参数错误,更新文档 fixed #571 #572
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Aug 21, 2019
1 parent 92a194a commit 936f66d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 3.21.1 | 2019.08.21
- 修复推荐歌单和网易出品mv参数错误,更新文档 [#571](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/571) [#572](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/572)

### 3.21.0 | 2019.08.20
- 新增`歌单删除接口`[#570](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/570)

Expand Down
11 changes: 9 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ tags: 歌单标签
**调用例子 :** `/hot/topic?limit=30&offset=30`

### 心动模式/智能播放
说明 : 调用此接口 , 可获取心动模式/智能播放列表
说明 : 登录后调用此接口 , 可获取心动模式/智能播放列表
**必选参数 :** `id` : 歌曲 id

`pid` : 歌单 id
Expand Down Expand Up @@ -1762,9 +1762,16 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具

说明 : 调用此接口 , 可获取推荐歌单

**可选参数 :** `limit`: 取出数量 , 默认为 30

`offset`: 偏移数量 , 用于分页 , 如 :( 页数 -1)\*30, 其中 30 为 limit 的值 , 默认
为 0

**接口地址 :** `/personalized`

**调用例子 :** `/personalized`
**调用例子 :** `/personalized?limit=1`



### 推荐新音乐

Expand Down
2 changes: 1 addition & 1 deletion module/mv_exclusive_rcmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = (query, request) => {
const data = {
offset: query.limit || 0,
offset: query.offset || 0,
limit: query.limit || 30
};
return request(
Expand Down
2 changes: 1 addition & 1 deletion module/personalized.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = (query, request) => {
const data = {
limit: query.limit || 30,
offset: query.limit || 0,
offset: query.offset || 0,
total: true,
n: 1000
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.21.0",
"version": "3.21.1",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit 936f66d

Please sign in to comment.