feat(scrapeURL): reintroduce default timeout

This commit is contained in:
Gergő Móricz 2025-04-10 12:20:47 +02:00
parent 7bb5643028
commit 5cb33ee03f

View File

@ -230,7 +230,9 @@ async function scrapeURLLoop(meta: Meta): Promise<ScrapeUrlResponse> {
const timeToRun =
meta.options.timeout !== undefined
? Math.round(meta.options.timeout / Math.min(fallbackList.length, 2))
: undefined;
: (!meta.options.actions && !meta.options.jsonOptions && !meta.options.extract)
? 120000
: undefined;
for (const { engine, unsupportedFeatures } of fallbackList) {
meta.internalOptions.abort?.throwIfAborted();