Update Vidmoly.ts

This commit is contained in:
GSTAR 2025-11-19 22:46:05 +01:00 committed by GitHub
parent 355521f1a6
commit 7b8f1d1742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,9 @@ export class Vidmoly extends Extractor {
}
protected async extractInternal(ctx: Context, url: URL, meta: Meta): Promise<UrlResult[]> {
const headers: Record<string, string> = { Referer: 'https://vidmoly.net' };
const referer = meta.referer ?? url.href;
const headers: Record<string, string> = { Referer: referer };
// --- 1. Fetch embed page for HLS ---
const embedHtml = await this.fetcher.text(ctx, url, headers);