pull/304/head
Mikael Finstad 2020-04-04 14:38:50 +08:00
rodzic 3c374432ff
commit 546ecaef67
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -14,9 +14,9 @@ const fileType = window.require('file-type');
const readChunk = window.require('read-chunk');
const readline = window.require('readline');
const stringToStream = window.require('string-to-stream');
const trash = window.require('trash');
const isDev = window.require('electron-is-dev');
const os = window.require('os');
const fs = window.require('fs-extra');
function getFfCommandLine(cmd, args) {
@ -404,7 +404,7 @@ export async function autoMergeSegments({ customOutDir, sourceFile, segmentPaths
const ext = extname(sourceFile);
const outPath = getOutPath(customOutDir, sourceFile, `cut-merged-${new Date().getTime()}${ext}`);
await mergeFiles({ paths: segmentPaths, outPath });
await pMap(segmentPaths, trash, { concurrency: 5 });
await pMap(segmentPaths, path => fs.unlink(path), { concurrency: 5 });
}
/**