From 7146c6cf11fa0d7ad12596987eeff176daf97697 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Tue, 6 Jan 2026 14:03:28 +0000 Subject: [PATCH] fix(source): handle MegaKino relative page links --- src/source/MegaKino.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/MegaKino.ts b/src/source/MegaKino.ts index 97b7d07..3f49c20 100644 --- a/src/source/MegaKino.ts +++ b/src/source/MegaKino.ts @@ -80,7 +80,7 @@ export class MegaKino extends Source { const $ = cheerio.load(html); return $('#dle-content a[href].poster:first') - .map((_i, el) => new URL($(el).attr('href') as string)) + .map(async (_i, el) => new URL($(el).attr('href') as string, await this.getBaseUrl(ctx))) .get(0); };