Skip to content

Commit

Permalink
fix: fix file extension when converted to MP3
Browse files Browse the repository at this point in the history
  • Loading branch information
eidoriantan committed Feb 17, 2024
1 parent 3497ed6 commit fd17383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/convert/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ router.post('/', asyncWrap(async (req, res) => {
result = videoTempname
} else if (hasAudio) {
result = convertMP3 ? mp3Tempname : audioTempname
fileExt = getExtension(audioMime)
fileExt = getExtension(convertMP3 ? 'audio/mpeg' : audioMime)
}

res.json({ success: true, id: result, extension: fileExt })
Expand Down

0 comments on commit fd17383

Please sign in to comment.