mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-22 15:41:23 +08:00
Merge pull request #1852 from Cinvin/master
feat:歌曲红心数量,歌曲音质详情,本地歌曲文件匹配网易云歌曲信息
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// 本地歌曲匹配音乐信息
|
||||
|
||||
module.exports = (query, request) => {
|
||||
let songs = [
|
||||
{
|
||||
title: query.title || '',
|
||||
album: query.album || '',
|
||||
artist: query.artist || '',
|
||||
duration: query.duration || 0,
|
||||
persistId: query.md5,
|
||||
},
|
||||
]
|
||||
const data = {
|
||||
songs: JSON.stringify(songs),
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface3.music.163.com/eapi/search/match/new`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
url: '/api/search/match/new',
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// 歌曲音质详情
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
songId: query.id,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface3.music.163.com/eapi/song/music/detail/get`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
url: '/api/song/music/detail/get',
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// 歌曲红心数量
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
songId: query.id,
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://interface3.music.163.com/eapi/song/red/count`,
|
||||
data,
|
||||
{
|
||||
crypto: 'eapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
url: '/api/song/red/count',
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user