mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增已购单曲,获取mlog播放地址,将mlog id转为视频id,vip成长值,vip成长值获取记录,vip任务,领取vip成长值 等接口 #1248
This commit is contained in:
parent
5494359948
commit
ea86e5bbeb
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 4.0.15 | 2021.5.29
|
||||
- 新增已购单曲,获取mlog播放地址,将mlog id转为视频id,vip成长值,vip成长值获取记录,vip任务,领取vip成长值 等接口 [#1248](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/1248)
|
||||
|
||||
### 4.0.14 | 2021.5.28
|
||||
- 增加云贝推歌接口,云贝推歌历史记录接口 [#1246](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/1246)
|
||||
|
||||
|
5
app.js
5
app.js
@ -42,8 +42,9 @@ app.use((req, res, next) => {
|
||||
;(req.headers.cookie || '').split(/\s*;\s*/).forEach((pair) => {
|
||||
let crack = pair.indexOf('=')
|
||||
if (crack < 1 || crack == pair.length - 1) return
|
||||
req.cookies[decodeURIComponent(pair.slice(0, crack)).trim()] =
|
||||
decodeURIComponent(pair.slice(crack + 1)).trim()
|
||||
req.cookies[
|
||||
decodeURIComponent(pair.slice(0, crack)).trim()
|
||||
] = decodeURIComponent(pair.slice(crack + 1)).trim()
|
||||
})
|
||||
next()
|
||||
})
|
||||
|
9
interface.d.ts
vendored
9
interface.d.ts
vendored
@ -1429,7 +1429,6 @@ export function cloud_match(
|
||||
} & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
|
||||
export function yunbei_rcmd_song(
|
||||
params: {
|
||||
id: number | string
|
||||
@ -1461,17 +1460,13 @@ export function mlog_to_video(
|
||||
} & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function vip_growthpoint(
|
||||
params: RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
export function vip_growthpoint(params: RequestBaseConfig): Promise<Response>
|
||||
|
||||
export function vip_growthpoint_details(
|
||||
params: MultiPageConfig & RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
|
||||
export function vip_tasks(
|
||||
params: RequestBaseConfig,
|
||||
): Promise<Response>
|
||||
export function vip_tasks(params: RequestBaseConfig): Promise<Response>
|
||||
|
||||
export function vip_growthpoint_get(
|
||||
params: {
|
||||
|
@ -16,4 +16,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -6,16 +6,10 @@ module.exports = (query, request) => {
|
||||
resolution: query.res || 1080,
|
||||
type: 1,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/weapi/mlog/detail/v1`,
|
||||
data,
|
||||
{
|
||||
return request('POST', `https://music.163.com/weapi/mlog/detail/v1`, data, {
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
})
|
||||
}
|
||||
|
@ -13,8 +13,7 @@ module.exports = (query, request) => {
|
||||
},
|
||||
).then((response) => {
|
||||
try {
|
||||
const pattern =
|
||||
/<div class="cver u-cover u-cover-3">[\s\S]*?<img src="([^"]+)">[\s\S]*?<a class="sname f-fs1 s-fc0" href="([^"]+)"[^>]*>([^<]+?)<\/a>[\s\S]*?<a class="nm nm f-thide s-fc3" href="([^"]+)"[^>]*>([^<]+?)<\/a>/g
|
||||
const pattern = /<div class="cver u-cover u-cover-3">[\s\S]*?<img src="([^"]+)">[\s\S]*?<a class="sname f-fs1 s-fc0" href="([^"]+)"[^>]*>([^<]+?)<\/a>[\s\S]*?<a class="nm nm f-thide s-fc3" href="([^"]+)"[^>]*>([^<]+?)<\/a>/g
|
||||
let result,
|
||||
playlists = []
|
||||
while ((result = pattern.exec(response.body)) != null) {
|
||||
|
@ -17,4 +17,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -14,4 +14,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -17,4 +17,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -16,4 +16,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -14,4 +14,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -19,4 +19,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ module.exports = (query, request) => {
|
||||
page: JSON.stringify({
|
||||
size: query.size || 20,
|
||||
cursor: query.cursor || '',
|
||||
})
|
||||
}),
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
@ -19,4 +19,3 @@ module.exports = (query, request) => {
|
||||
},
|
||||
)
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.0.14",
|
||||
"version": "4.0.15",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user