Update Vidmoly.ts
This commit is contained in:
parent
355521f1a6
commit
7b8f1d1742
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue