From 7dfc599de900c34703e41eeea5c4e459da6380cf Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Mon, 2 Mar 2026 13:02:34 +0000 Subject: [PATCH] fix(extractor): use Dropload playlist headers also internally --- src/extractor/Dropload.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/extractor/Dropload.ts b/src/extractor/Dropload.ts index d375b4a..8d94cf6 100644 --- a/src/extractor/Dropload.ts +++ b/src/extractor/Dropload.ts @@ -28,11 +28,12 @@ export class Dropload extends Extractor { } const playlistUrl = extractUrlFromPacked(html, [/sources:\[{file:"(.*?)"/]); + const playlistHeaders = { Referer: url.origin }; const heightMatch = html.match(/\d{3,}x(\d{3,}),/); const height = heightMatch ? parseInt(heightMatch[1] as string) - : meta.height ?? await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl); + : meta.height ?? await guessHeightFromPlaylist(ctx, this.fetcher, playlistUrl, { headers: playlistHeaders }); const sizeMatch = html.match(/([\d.]+ ?[GM]B)/); const size = sizeMatch ? bytes.parse(sizeMatch[1] as string) as number : undefined; @@ -50,7 +51,7 @@ export class Dropload extends Extractor { ...(size && { bytes: size }), ...(height && { height }), }, - requestHeaders: { Referer: url.origin }, + requestHeaders: playlistHeaders, }, ]; };