mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-23 16:11:24 +08:00
新增全部新碟,数字专辑-新碟上架,数字专辑&数字单曲-榜单,数字专辑-语种风格馆,数字专辑详情接口,更新新碟上架接口,修改传入参数,返回数据结构有变化
This commit is contained in:
+7
-3
@@ -1,14 +1,18 @@
|
||||
// 新碟上架
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const date = new Date()
|
||||
|
||||
const data = {
|
||||
area: query.type || 'ALL', // ALL,ZH,EA,KR,JP
|
||||
area: query.area || 'ALL', // //ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本
|
||||
limit: query.limit || 50,
|
||||
offset: query.offset || 0,
|
||||
total: true
|
||||
type: query.type || 'new',
|
||||
year: query.year || date.getFullYear(),
|
||||
month: query.month || date.getMonth() + 1,
|
||||
}
|
||||
return request(
|
||||
'POST', `https://music.163.com/weapi/album/new`, data,
|
||||
'POST', `https://music.163.com/api/discovery/new/albums/area`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user