aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/workers/videoWorker.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workers/videoWorker.ts b/apps/workers/videoWorker.ts
index 32f16f97..23ead8f8 100644
--- a/apps/workers/videoWorker.ts
+++ b/apps/workers/videoWorker.ts
@@ -63,7 +63,6 @@ export class VideoWorker {
}
function prepareYtDlpArguments(url: string, assetPath: string) {
- // TODO allow custom commandline arguments?
const ytDlpArguments = [url];
if (serverConfig.crawler.maxVideoDownloadSize > 0) {
ytDlpArguments.push(
@@ -71,6 +70,8 @@ function prepareYtDlpArguments(url: string, assetPath: string) {
`best[filesize<${serverConfig.crawler.maxVideoDownloadSize}M]`,
);
}
+
+ ytDlpArguments.push(...serverConfig.crawler.ytDlpArguments);
ytDlpArguments.push("-o", assetPath);
ytDlpArguments.push("--no-playlist");
return ytDlpArguments;