From 56dacdae73a9ea0d9733fbbf95691c052175bbba Mon Sep 17 00:00:00 2001 From: stratuma Date: Thu, 20 Jun 2024 13:37:21 +0200 Subject: [PATCH] fix mp4decrypt path bug --- src/api/services/mp4decrypt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/services/mp4decrypt.ts b/src/api/services/mp4decrypt.ts index 4269cf2..8b2d56b 100644 --- a/src/api/services/mp4decrypt.ts +++ b/src/api/services/mp4decrypt.ts @@ -14,7 +14,7 @@ export function getMP4DecryptPath() { return mp4Decrypt } else { - const mp4Decrypt = path.join(decryptPath, 'mp4decrypt.exe').replace(/\s/g, '\\ ') + const mp4Decrypt = path.join(decryptPath, 'mp4decrypt.exe').replace(/\\/g, '\\\\').replace(/ /g, '\\ ') return mp4Decrypt }