Update Streamtape.ts
This commit is contained in:
parent
e470e2600b
commit
ca09cede9d
1 changed files with 3 additions and 5 deletions
|
|
@ -13,8 +13,7 @@ export class Streamtape extends Extractor {
|
|||
public readonly label = 'Streamtape (via MediaFlow Proxy)';
|
||||
|
||||
public supports(ctx: Context, url: URL): boolean {
|
||||
const supportedDomain
|
||||
= null !== url.host.match(/streamtape/)
|
||||
const supportedDomain = null !== url.host.match(/streamtape/)
|
||||
|| [
|
||||
'strtape.cloud',
|
||||
'streamta.pe',
|
||||
|
|
@ -38,8 +37,7 @@ export class Streamtape extends Extractor {
|
|||
].includes(url.host);
|
||||
|
||||
return supportedDomain && supportsMediaFlowProxy(ctx);
|
||||
}
|
||||
|
||||
|
||||
public override normalize(url: URL): URL {
|
||||
return new URL(url.href.replace('/e/', '/v/'));
|
||||
}
|
||||
|
|
@ -76,4 +74,4 @@ export class Streamtape extends Extractor {
|
|||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue