fix(extractor): normalize Streamtape URLs

This commit is contained in:
WebStreamr 2025-09-15 14:02:20 +00:00
parent 1028c663eb
commit aeb7ce5f54
No known key found for this signature in database

View file

@ -16,6 +16,10 @@ export class Streamtape extends Extractor {
return null !== url.host.match(/streamtape/) && supportsMediaFlowProxy(ctx);
}
public override normalize(url: URL): URL {
return new URL(url.href.replace('/v/', '/e/'));
}
protected async extractInternal(ctx: Context, url: URL, meta: Meta): Promise<UrlResult[]> {
const html = await this.fetcher.text(ctx, url);