Update DoodStream.ts
This commit is contained in:
parent
b90f1d1eba
commit
982dfcfc8a
1 changed files with 5 additions and 4 deletions
|
|
@ -14,9 +14,10 @@ export class DoodStream extends Extractor {
|
|||
public override viaMediaFlowProxy = true;
|
||||
|
||||
public supports(ctx: Context, url: URL): boolean {
|
||||
const supportedDomain = /dood|do[0-9]go|doood|dooood|ds2play|ds2video|dsvplay|d0o0d|do0od|d0000d|d000d|myvidplay|vidply|all3do|doply|vide0|vvide0|d-s/.test(
|
||||
url.host
|
||||
);
|
||||
const supportedDomain =
|
||||
/dood|do[0-9]go|doood|dooood|ds2play|ds2video|dsvplay|d0o0d|do0od|d0000d|d000d|myvidplay|vidply|all3do|doply|vide0|vvide0|d-s/.test(
|
||||
url.host,
|
||||
);
|
||||
|
||||
return supportedDomain && supportsMediaFlowProxy(ctx);
|
||||
}
|
||||
|
|
@ -31,7 +32,7 @@ export class DoodStream extends Extractor {
|
|||
protected async extractInternal(
|
||||
ctx: Context,
|
||||
url: URL,
|
||||
meta: Meta
|
||||
meta: Meta,
|
||||
): Promise<UrlResult[]> {
|
||||
const headers = {
|
||||
Referer: meta.referer ?? url.href,
|
||||
|
|
|
|||
Loading…
Reference in a new issue