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.
- Loading branch information
Showing
107 changed files
with
364 additions
and
2,301 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,13 @@ | ||
// 获取歌手专辑列表 | ||
// module.exports = (req, res, createWebAPIRequest, request) => { | ||
// const cookie = req.get("Cookie") ? req.get("Cookie") : ""; | ||
// const id = req.query.id; | ||
// const data = { | ||
// offset: req.query.offset || 0, | ||
// total: true, | ||
// limit: req.query.limit || 30, | ||
// csrf_token: "" | ||
// }; | ||
// createWebAPIRequest( | ||
// "music.163.com", | ||
// `/weapi/artist/albums/${id}`, | ||
// "POST", | ||
// data, | ||
// cookie, | ||
// music_req => res.send(music_req), | ||
// err => res.status(502).send("fetch error") | ||
// ); | ||
// }; | ||
// 歌手专辑列表 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
offset: query.offset || 0, | ||
limit: query.limit || 30, | ||
offset: query.offset || 0, | ||
total: true | ||
} | ||
return request( | ||
'POST', `http://music.163.com/weapi/artist/albums/${query.id}`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} | ||
} |
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 |
---|---|---|
@@ -1,33 +1,14 @@ | ||
// module.exports = (req, res, createWebAPIRequest, request) => { | ||
// const cookie = req.get("Cookie") ? req.get("Cookie") : ""; | ||
// const id = req.query.id; | ||
// const data = { | ||
// artistId: id, | ||
// total: true, | ||
// offset: req.query.offset, | ||
// limit: req.query.limit, | ||
// csrf_token: "" | ||
// }; | ||
// createWebAPIRequest( | ||
// "music.163.com", | ||
// `/weapi/artist/mvs`, | ||
// "POST", | ||
// data, | ||
// cookie, | ||
// music_req => res.send(music_req), | ||
// err => res.status(502).send("fetch error") | ||
// ); | ||
// }; | ||
// 歌手相关MV | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
artistId: query.id, | ||
total: true, | ||
limit: query.limit, | ||
offset: query.offset, | ||
limit: query.limit | ||
total: true | ||
} | ||
return request( | ||
'POST', `http://music.163.com/weapi/artist/mvs`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} | ||
} |
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 |
---|---|---|
@@ -1,29 +1,13 @@ | ||
// 收藏歌手 | ||
// module.exports = (req, res, createWebAPIRequest, request) => { | ||
// const cookie = req.get("Cookie") ? req.get("Cookie") : ""; | ||
// const data = { | ||
// artistId: `${req.query.id}` | ||
// }; | ||
// createWebAPIRequest( | ||
// "music.163.com", | ||
// "/weapi/artist/sub", | ||
// "POST", | ||
// data, | ||
// cookie, | ||
// music_req => { | ||
// res.send(music_req); | ||
// }, | ||
// err => res.status(502).send("fetch error") | ||
// ); | ||
// }; | ||
// 收藏与取消收藏歌手 | ||
|
||
module.exports = (query, request) => { | ||
query.t = (query.t == 1 ? 'sub' : 'unsub') | ||
const data = { | ||
artistId: query.id | ||
artistId: query.id, | ||
artistIds: '[' + query.id + ']' | ||
} | ||
return request( | ||
'POST', `http://music.163.com/weapi/artist/sub`, data, | ||
'POST', `http://music.163.com/weapi/artist/${query.t}`, data, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} | ||
|
||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,28 +1,8 @@ | ||
// 获取歌手单曲 | ||
// module.exports = (req, res, createWebAPIRequest, request) => { | ||
// const cookie = req.get("Cookie") ? req.get("Cookie") : ""; | ||
// const id = req.query.id; | ||
|
||
// const data = { | ||
// csrf_token: "" | ||
// }; | ||
|
||
// createWebAPIRequest( | ||
// "music.163.com", | ||
// `/weapi/v1/artist/${id}`, | ||
// "POST", | ||
// data, | ||
// cookie, | ||
// music_req => { | ||
// res.send(music_req); | ||
// }, | ||
// err => res.status(502).send("fetch error") | ||
// ); | ||
// }; | ||
// 歌手单曲 | ||
|
||
module.exports = (query, request) => { | ||
return request( | ||
'POST', `http://music.163.com/weapi/v1/artist/${query.id}`, {}, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} | ||
} |
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
Oops, something went wrong.