From 8c8fa8e4c9cda869f9efd0c02732609f9bdf50a0 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 11 Dec 2020 16:41:59 +0100 Subject: [PATCH] fix bug --- src/App.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index bbbe0bd..fcd751a 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -632,10 +632,11 @@ const App = memo(() => { const ext = extname(firstPath); const outPath = getOutPath(newCustomOutDir, firstPath, `merged${ext}`); + const outDir = getOutDir(customOutDir, firstPath); // console.log('merge', paths); await ffmpegMergeFiles({ paths, outPath, allStreams, ffmpegExperimental, onProgress: setCutProgress, preserveMovData, preserveMetadataOnMerge }); - openDirToast({ icon: 'success', dirPath: outputDir, text: i18n.t('Files merged!') }); + openDirToast({ icon: 'success', dirPath: outDir, text: i18n.t('Files merged!') }); } catch (err) { errorToast(i18n.t('Failed to merge files. Make sure they are all of the exact same codecs')); console.error('Failed to merge files', err);