Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 321e9c6

Browse files
authored
Merge pull request #1503 from itxve/master
🐛 专辑未正常获取
2 parents ad26084 + 7c86728 commit 321e9c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

module/cloud.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ module.exports = async (query, request) => {
4949
let album = ''
5050
let songName = ''
5151
try {
52-
const metadata = await mm.parseBuffer(query.songFile.data, 'audio/mpeg')
52+
const metadata = await mm.parseBuffer(
53+
query.songFile.data,
54+
query.songFile.mimetype,
55+
)
5356
const info = metadata.common
57+
5458
if (info.title) {
5559
songName = info.title
5660
}

0 commit comments

Comments
 (0)