mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 02:32:06 +08:00
🐛 专辑未正常获取
This commit is contained in:
@ -49,8 +49,12 @@ module.exports = async (query, request) => {
|
||||
let album = ''
|
||||
let songName = ''
|
||||
try {
|
||||
const metadata = await mm.parseBuffer(query.songFile.data, 'audio/mpeg')
|
||||
const metadata = await mm.parseBuffer(
|
||||
query.songFile.data,
|
||||
query.songFile.mimetype,
|
||||
)
|
||||
const info = metadata.common
|
||||
|
||||
if (info.title) {
|
||||
songName = info.title
|
||||
}
|
||||
|
Reference in New Issue
Block a user