From a12b88d6cf63f9ecdc2506e05cd37dd04de34b79 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sun, 24 Nov 2024 06:48:51 +0100 Subject: [PATCH] Passing limit arguments to unprint as defaults (will not override hostname limits). --- src/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 7bd04922..882fe078 100755 --- a/src/app.js +++ b/src/app.js @@ -35,7 +35,13 @@ unprint.options({ headers: { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36', }, - limits: config.limits, + limits: { + ...config.limits, + default: { + interval: argv.interval || config.limits.default.interval, + concurrency: argv.concurrency || config.limits.default.concurrency, + }, + }, proxy: config.proxy, });