chore(extractor): add viaMediaFlowProxy flag to extractors
This commit is contained in:
parent
947060b07e
commit
8c8bfd6051
4 changed files with 8 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ export abstract class Extractor {
|
|||
|
||||
public readonly ttl: number = 900000; // 15m
|
||||
|
||||
public readonly viaMediaFlowProxy: boolean = false;
|
||||
|
||||
public abstract supports(ctx: Context, url: URL): boolean;
|
||||
|
||||
public normalize(url: URL): URL {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ export class Mixdrop extends Extractor {
|
|||
|
||||
public override readonly ttl = 0;
|
||||
|
||||
public override viaMediaFlowProxy = true;
|
||||
|
||||
private readonly fetcher: Fetcher;
|
||||
|
||||
public constructor(fetcher: Fetcher) {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ export class Uqload extends Extractor {
|
|||
|
||||
public override readonly ttl = 0;
|
||||
|
||||
public override viaMediaFlowProxy = true;
|
||||
|
||||
private readonly fetcher: Fetcher;
|
||||
|
||||
public constructor(fetcher: Fetcher) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ export class VixSrc extends Extractor {
|
|||
|
||||
public override readonly ttl = 0;
|
||||
|
||||
public override viaMediaFlowProxy = true;
|
||||
|
||||
private readonly fetcher: Fetcher;
|
||||
|
||||
public constructor(fetcher: Fetcher) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue