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

Commit

Permalink
Merge pull request #1503 from itxve/master
Browse files Browse the repository at this point in the history
🐛 专辑未正常获取
  • Loading branch information
Binaryify authored Apr 6, 2022
2 parents ad26084 + 7c86728 commit 321e9c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion module/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

2 comments on commit 321e9c6

@vercel
Copy link

@vercel vercel bot commented on 321e9c6 Apr 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

netease-cloud-music-api – ./docs

neteasecloudmusicapi.vercel.app
netease-cloud-music-api-git-master-binaryify.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 321e9c6 Apr 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.