Update Streamtape.ts

This commit is contained in:
GSTAR 2025-11-08 09:14:35 +01:00 committed by webstreamr
parent e470e2600b
commit ca09cede9d

View file

@ -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 {
},
];
}
}
}