Skip to content

Commit 554b5f6

Browse files
committed
fix(worker): remove empty options from ytdlp config
1 parent f335671 commit 554b5f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/workers/videoWorker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ function prepareYtDlpArguments(url: string, assetPath: string) {
7171
);
7272
}
7373

74-
ytDlpArguments.push(...serverConfig.crawler.ytDlpArguments.split(','))
74+
ytDlpArguments.push(...serverConfig.crawler.ytDlpArguments.split(","));
7575
ytDlpArguments.push("-o", assetPath);
7676
ytDlpArguments.push("--no-playlist");
77-
return ytDlpArguments;
77+
return ytDlpArguments.filter((e) => e); // remove empty options
7878
}
7979

8080
async function runWorker(job: DequeuedJob<ZVideoRequest>) {

0 commit comments

Comments
 (0)