mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
🐛 专辑未正常获取
This commit is contained in:
parent
ad2608494f
commit
7c86728612
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user