mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2025-12-19 15:32:59 +05:30
fix: audio video not merging in macos
This commit is contained in:
@@ -99,6 +99,7 @@ export default function App({ children }: { children: React.ReactNode }) {
|
|||||||
const appWindow = getCurrentWebviewWindow()
|
const appWindow = getCurrentWebviewWindow()
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const LOG = useLogger();
|
const LOG = useLogger();
|
||||||
|
const currentPlatform = platform();
|
||||||
const { updateYtDlp } = useYtDlpUpdater();
|
const { updateYtDlp } = useYtDlpUpdater();
|
||||||
const { registerToMac } = useMacOsRegisterer();
|
const { registerToMac } = useMacOsRegisterer();
|
||||||
const { checkForAppUpdate } = useAppUpdater();
|
const { checkForAppUpdate } = useAppUpdater();
|
||||||
@@ -299,6 +300,10 @@ export default function App({ children }: { children: React.ReactNode }) {
|
|||||||
MAX_RETRIES.toString(),
|
MAX_RETRIES.toString(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (currentPlatform === 'macos') {
|
||||||
|
args.push('--ffmpeg-location', '/Applications/NeoDLP.app/Contents/MacOS');
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedSubtitles) {
|
if (selectedSubtitles) {
|
||||||
args.push('--embed-subs', '--sub-lang', selectedSubtitles);
|
args.push('--embed-subs', '--sub-lang', selectedSubtitles);
|
||||||
}
|
}
|
||||||
@@ -1054,7 +1059,6 @@ export default function App({ children }: { children: React.ReactNode }) {
|
|||||||
appVersion: appVersion,
|
appVersion: appVersion,
|
||||||
registeredVersion: macOsRegisteredVersion
|
registeredVersion: macOsRegisteredVersion
|
||||||
});
|
});
|
||||||
const currentPlatform = platform();
|
|
||||||
if (currentPlatform === 'macos' && (!macOsRegisteredVersion || macOsRegisteredVersion !== appVersion)) {
|
if (currentPlatform === 'macos' && (!macOsRegisteredVersion || macOsRegisteredVersion !== appVersion)) {
|
||||||
console.log("Running MacOS auto registration...");
|
console.log("Running MacOS auto registration...");
|
||||||
LOG.info('NEODLP', 'Running macOS registration');
|
LOG.info('NEODLP', 'Running macOS registration');
|
||||||
|
|||||||
Reference in New Issue
Block a user