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#484 from HIjack2015/jk-branch
Jk branch
- Loading branch information
Showing
20 changed files
with
292 additions
and
60 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
> 网易云音乐 NodeJS 版 API | ||
- 全部接口已升级到最新 | ||
- 具备登录接口 | ||
- 具备登录接口,多达100多个接口 | ||
- 更完善的文档 | ||
|
||
|
||
|
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,8 +1,14 @@ | ||
// 首页轮播图 | ||
|
||
module.exports = (query, request) => { | ||
const type = { | ||
0: 'pc', | ||
1: 'android', | ||
2: 'iphone', | ||
3: 'ipad' | ||
}[query.type || 0] || 'pc'; | ||
return request( | ||
'POST', `https://music.163.com/api/v2/banner/get`, {clientType: "pc"}, | ||
'POST', `https://music.163.com/api/v2/banner/get`, {clientType: type}, | ||
{crypto: 'linuxapi', 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// 电台banner | ||
|
||
module.exports = (query, request) => { | ||
const data = {}; | ||
return request( | ||
"POST", | ||
`http://music.163.com/weapi/djradio/banner/get`, | ||
{}, | ||
{ 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// dj非热门类型 | ||
|
||
module.exports = (query, request) => { | ||
|
||
return request( | ||
'POST', `http://music.163.com/weapi/djradio/category/excludehot`, {}, | ||
{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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// dj推荐类型 | ||
|
||
module.exports = (query, request) => { | ||
|
||
return request( | ||
'POST', `http://music.163.com/weapi/djradio/home/category/recommend`, {}, | ||
{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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// dj今日优选 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
page: query.page || 0 | ||
}; | ||
return request( | ||
'POST', `http://music.163.com/weapi/djradio/home/today/perfered`, 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,8 +1,12 @@ | ||
// 动态 | ||
|
||
module.exports = (query, request) => { | ||
const data={ | ||
"pagesize": query.pagesize || 20, | ||
"lasttime": query.lasttime || -1 | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/v1/event/get`, {}, | ||
'POST', `https://music.163.com/weapi/v1/event/get`, 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// 转发动态 | ||
|
||
const crypto = require('crypto') | ||
|
||
module.exports = (query, request) => { | ||
query.cookie.os = 'osx' | ||
const data = { | ||
forwards: query.forwards, | ||
id: query.id, | ||
eventUserId: query.eventUserId, | ||
checkToken:query.checkToken | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/event/forward`, data, | ||
{crypto: 'weapi', ua: 'pc', 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//热门话题 | ||
|
||
module.exports = (query, request) => { | ||
const data = { | ||
limit: query.limit || 20, | ||
offset: query.offset || 0 | ||
} | ||
return request( | ||
'POST', `http://music.163.com/weapi/act/hot`, 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,8 +1,11 @@ | ||
// 歌词 | ||
|
||
module.exports = (query, request) => { | ||
const data={ | ||
id:query.id | ||
} | ||
return request( | ||
'POST', `https://music.163.com/weapi/song/lyric?os=osx&id=${query.id}&lv=-1&kv=-1&tv=-1`, {}, | ||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} | ||
'POST', `https://music.163.com/weapi/song/lyric?lv=-1&kv=-1&tv=-1`, data, | ||
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy} | ||
) | ||
} |
Oops, something went wrong.