Passing limit arguments to unprint as defaults (will not override hostname limits).

This commit is contained in:
DebaucheryLibrarian 2024-11-24 06:48:51 +01:00
parent ceed11cf7e
commit a12b88d6cf
1 changed files with 7 additions and 1 deletions

View File

@ -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,
});