mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
修复电台 banner 接口无数据问题 #601,更新排行榜 #602,新增电台排行榜,新晋电台榜,热门电台榜接口 #604
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {};
|
||||
query.cookie.os = 'pc';
|
||||
return request(
|
||||
'POST',
|
||||
`http://music.163.com/weapi/djradio/banner/get`,
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
// 电台节目榜
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
limit: query.limit || 100,
|
||||
offset: query.offset || 0
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/api/program/toplist/v1`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// 新晋电台榜/热门电台榜
|
||||
const typeMap = {
|
||||
'new': 0,
|
||||
'hot': 1
|
||||
}
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
limit: query.limit || 100,
|
||||
offset: query.offset || 0,
|
||||
type: typeMap[query.type || 'new'] || '0' //0为新晋,1为热门
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/api/djradio/toplist`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
||||
@@ -35,6 +35,10 @@ const topList = {
|
||||
31: '2809513713', //云音乐欧美热歌榜
|
||||
32: '2809577409', //云音乐欧美新歌榜
|
||||
33: '2847251561', //说唱TOP榜
|
||||
34: '3001835560', //云音乐ACG动画榜
|
||||
35: '3001795926', //云音乐ACG游戏榜
|
||||
36: '3001890046', //云音乐ACG VOCALOID榜
|
||||
|
||||
}
|
||||
|
||||
module.exports = (query, request) => {
|
||||
|
||||
Reference in New Issue
Block a user