Skip to content

Commit

Permalink
增加创建共享歌单的用法
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 committed Nov 23, 2021
1 parent 8d7c147 commit 0f27e22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具

`privacy` : 是否设置为隐私歌单,默认否,传'10'则设置成隐私歌单

`type` : 歌单类型,默认'NORMAL',传 'VIDEO'则为视频歌单
`type` : 歌单类型,默认'NORMAL',传 'VIDEO'则为视频歌单,传 'SHARED'则为共享歌单

**接口地址 :** `/playlist/create`

Expand Down
2 changes: 1 addition & 1 deletion module/playlist_create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (query, request) => {
const data = {
name: query.name,
privacy: query.privacy, //0 为普通歌单,10 为隐私歌单
type: query.type || 'NORMAL', // NORMAL|VIDEO
type: query.type || 'NORMAL', // NORMAL|VIDEO|SHARED
}
return request('POST', `https://music.163.com/api/playlist/create`, data, {
crypto: 'weapi',
Expand Down

0 comments on commit 0f27e22

Please sign in to comment.