chore(extractor): do only one VidSrc request per domain at a time
This commit is contained in:
parent
211babec37
commit
b589c25bb5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue