From 7a329df003577c9a639f0d20ced83b222881d3c7 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Fri, 31 Oct 2025 21:19:45 +0000 Subject: [PATCH] pass only correct origin for playlist urls --- src/extractor/Vidora.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/extractor/Vidora.ts b/src/extractor/Vidora.ts index 8c459e0..256afeb 100644 --- a/src/extractor/Vidora.ts +++ b/src/extractor/Vidora.ts @@ -19,14 +19,13 @@ export class Vidora extends Extractor { } protected async extractInternal(ctx: Context, url: URL, meta: Meta): Promise { - const headers = { Origin: new URL(meta.referer ?? url.href).origin }; - - const html = await this.fetcher.text(ctx, url, { headers }); + const html = await this.fetcher.text(ctx, url); const $ = cheerio.load(html); const title = $('title').text().trim().replace(/^Watch /, '').trim(); const m3u8Url = extractUrlFromPacked(html, [/file: ?"(.*?)"/]); + const headers = { Origin: url.origin }; return [ {