aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/crawlerWorker.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-11-03 20:36:30 +0000
committerMohamed Bassem <me@mbassem.com>2024-11-03 20:36:30 +0000
commitcbaa0338f448f2405b4458089abd2799ba57983f (patch)
tree994c6b91d5e84b07ede2054dae69ac6f6413f439 /apps/workers/crawlerWorker.ts
parent7ec5746192ac59b38f7666643bad5e68ef4b46d7 (diff)
downloadkarakeep-cbaa0338f448f2405b4458089abd2799ba57983f.tar.zst
fix: Pass arguments to monolith and yt-dlp as array for better escaping
Diffstat (limited to 'apps/workers/crawlerWorker.ts')
-rw-r--r--apps/workers/crawlerWorker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts
index d5bc555e..f607234e 100644
--- a/apps/workers/crawlerWorker.ts
+++ b/apps/workers/crawlerWorker.ts
@@ -411,7 +411,7 @@ async function archiveWebpage(
await execa({
input: html,
- })`monolith - -Ije -t 5 -b ${url} -o ${assetPath}`;
+ })("monolith", ["-", "-Ije", "-t", "5", "-b", url, "-o", assetPath]);
const contentType = "text/html";