From 63941e7ef59ba846433a67d85195586955cc7daa Mon Sep 17 00:00:00 2001 From: stratuma Date: Mon, 27 May 2024 17:43:45 +0200 Subject: [PATCH] fixed mp4decrypt not found bug --- src/api/services/ffmpeg.ts | 4 ---- src/api/services/mp4decrypt.ts | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/api/services/ffmpeg.ts b/src/api/services/ffmpeg.ts index d2d9eec..a11475f 100644 --- a/src/api/services/ffmpeg.ts +++ b/src/api/services/ffmpeg.ts @@ -15,10 +15,6 @@ export function getFFMPEGPath() { return { ffmpeg: ffmpeg, ffprobe: ffprobe } } else { - // Linux: - // const ffmpeg = path.join(ffmpegPath, 'ffmpeg') - // const ffprobe = path.join(ffmpegPath, 'ffprobe') - const ffmpeg = path.join(ffmpegPath, 'ffmpeg.exe') const ffprobe = path.join(ffmpegPath, 'ffprobe.exe') diff --git a/src/api/services/mp4decrypt.ts b/src/api/services/mp4decrypt.ts index 787ec58..4269cf2 100644 --- a/src/api/services/mp4decrypt.ts +++ b/src/api/services/mp4decrypt.ts @@ -14,8 +14,7 @@ export function getMP4DecryptPath() { return mp4Decrypt } else { - // Linux: const mp4Decrypt = path.join(decryptPath, 'mp4decrypt').replace(/\s/g, '\\ ') - const mp4Decrypt = path.join(decryptPath, 'mp4decrypt.exe') + const mp4Decrypt = path.join(decryptPath, 'mp4decrypt.exe').replace(/\s/g, '\\ ') return mp4Decrypt }