From 7c86728612957ecfb244f40f82b4e58906626c8c Mon Sep 17 00:00:00 2001 From: tianxueren <1770664399@qq.com> Date: Wed, 6 Apr 2022 15:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=B8=93=E8=BE=91=E6=9C=AA?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/cloud.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/cloud.js b/module/cloud.js index 3ce8d5e..361161e 100644 --- a/module/cloud.js +++ b/module/cloud.js @@ -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 }