forked from Binaryify/NeteaseCloudMusicApi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Binaryify#1623 from chen310/patch
feat: 增加若干曲风相关接口
- Loading branch information
Showing
9 changed files
with
268 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 曲风-专辑 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
cursor: query.cursor || 0, | ||
size: query.size || 20, | ||
tagId: query.tagId, | ||
sort: query.sort || 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/style-tag/home/album`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 曲风-歌手 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
cursor: query.cursor || 0, | ||
size: query.size || 20, | ||
tagId: query.tagId, | ||
sort: 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/style-tag/home/artist`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 曲风详情 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
tagId: query.tagId, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/style-tag/home/head`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// 曲风列表 | ||
|
||
module.exports = (query, request) => { | ||
const data = {} | ||
return request('POST', `https://music.163.com/api/tag/list/get`, data, { | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 曲风-歌单 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
cursor: query.cursor || 0, | ||
size: query.size || 20, | ||
tagId: query.tagId, | ||
sort: 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/style-tag/home/playlist`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// 曲风偏好 | ||
|
||
module.exports = (query, request) => { | ||
const data = {} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/tag/my/preference/get`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 曲风-歌曲 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
cursor: query.cursor || 0, | ||
size: query.size || 20, | ||
tagId: query.tagId, | ||
sort: query.sort || 0, | ||
} | ||
return request( | ||
'POST', | ||
`https://music.163.com/api/style-tag/home/song`, | ||
data, | ||
{ | ||
crypto: 'weapi', | ||
cookie: query.cookie, | ||
proxy: query.proxy, | ||
realIP: query.realIP, | ||
}, | ||
) | ||
} |