From cbaa0338f448f2405b4458089abd2799ba57983f Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 3 Nov 2024 20:36:30 +0000 Subject: fix: Pass arguments to monolith and yt-dlp as array for better escaping --- apps/workers/videoWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/workers/videoWorker.ts') diff --git a/apps/workers/videoWorker.ts b/apps/workers/videoWorker.ts index 5448f0fa..a85a8cae 100644 --- a/apps/workers/videoWorker.ts +++ b/apps/workers/videoWorker.ts @@ -98,7 +98,7 @@ async function runWorker(job: DequeuedJob) { `[VideoCrawler][${jobId}] Attempting to download a file from "${url}" to "${assetPath}" using the following arguments: "${ytDlpArguments}"`, ); - await execa`yt-dlp ${ytDlpArguments}`; + await execa("yt-dlp", ytDlpArguments); const downloadPath = await findAssetFile(videoAssetId); if (!downloadPath) { logger.info( -- cgit v1.2.3-70-g09d2