Update streamtape.ts

This commit is contained in:
Pas 2025-05-18 11:04:34 -06:00
parent afefd18a40
commit 41e70c012f

View file

@ -20,7 +20,13 @@ function embed(provider: { id: string; name: string; rank: number }) {
name: provider.name,
rank: provider.rank,
async scrape(ctx) {
const embedHtml = await ctx.proxiedFetcher<string>(ctx.url);
const response = await fetch(ctx.url, {
headers: {
Accept: 'text/html',
},
});
const embedHtml = await response.text();
const match = embedHtml.match(/robotlink'\).innerHTML = (.*)'/);
if (!match) throw new Error('No match found');