From 8fc3e7b84ca5d5eafa2d19e1e915cd5a83760324 Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Sun, 12 Oct 2025 10:06:00 +0530 Subject: [PATCH] fix: audio video not merging in macos --- src/App.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 532b5b7..095eeff 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -99,6 +99,7 @@ export default function App({ children }: { children: React.ReactNode }) { const appWindow = getCurrentWebviewWindow() const navigate = useNavigate(); const LOG = useLogger(); + const currentPlatform = platform(); const { updateYtDlp } = useYtDlpUpdater(); const { registerToMac } = useMacOsRegisterer(); const { checkForAppUpdate } = useAppUpdater(); @@ -299,6 +300,10 @@ export default function App({ children }: { children: React.ReactNode }) { MAX_RETRIES.toString(), ]; + if (currentPlatform === 'macos') { + args.push('--ffmpeg-location', '/Applications/NeoDLP.app/Contents/MacOS'); + } + if (selectedSubtitles) { args.push('--embed-subs', '--sub-lang', selectedSubtitles); } @@ -1054,7 +1059,6 @@ export default function App({ children }: { children: React.ReactNode }) { appVersion: appVersion, registeredVersion: macOsRegisteredVersion }); - const currentPlatform = platform(); if (currentPlatform === 'macos' && (!macOsRegisteredVersion || macOsRegisteredVersion !== appVersion)) { console.log("Running MacOS auto registration..."); LOG.info('NEODLP', 'Running macOS registration');