🐛 专辑未正常获取

This commit is contained in:
tianxueren 2022-04-06 15:53:22 +08:00
parent ad2608494f
commit 7c86728612

View File

@ -49,8 +49,12 @@ module.exports = async (query, request) => {
let album = '' let album = ''
let songName = '' let songName = ''
try { 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 const info = metadata.common
if (info.title) { if (info.title) {
songName = info.title songName = info.title
} }