chore(extractor): do only one VidSrc request per domain at a time

This commit is contained in:
WebStreamr 2025-09-05 08:52:57 +00:00
parent 211babec37
commit b589c25bb5
No known key found for this signature in database

View file

@ -39,7 +39,7 @@ export class VidSrc extends Extractor {
let html: string;
try {
html = await this.fetcher.text(ctx, newUrl);
html = await this.fetcher.text(ctx, newUrl, { queueLimit: 1 });
} catch (error) {
if (tlds.length && (error instanceof TooManyRequestsError || error instanceof BlockedError)) {
return this.extractUsingRandomTld(ctx, url, meta, tlds);