mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-17 17:56:38 +00:00
fix: data wrapped inside blob
This commit is contained in:
parent
29852a44dd
commit
29a174bc22
@ -63,7 +63,13 @@ export async function convertAudio(
|
|||||||
const baseName = input.name.replace(/\.[^.]+$/, '');
|
const baseName = input.name.replace(/\.[^.]+$/, '');
|
||||||
const convertedFileName = `${baseName}.${options.outputFormat}`;
|
const convertedFileName = `${baseName}.${options.outputFormat}`;
|
||||||
|
|
||||||
return new File([data], convertedFileName, { type: mimeType });
|
return new File(
|
||||||
|
[new Blob([data as any], { type: mimeType })],
|
||||||
|
convertedFileName,
|
||||||
|
{
|
||||||
|
type: mimeType
|
||||||
|
}
|
||||||
|
);
|
||||||
} finally {
|
} finally {
|
||||||
// Clean up FFmpeg virtual filesystem
|
// Clean up FFmpeg virtual filesystem
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user