fix(source): handle MegaKino relative page links

This commit is contained in:
WebStreamr 2026-01-06 14:03:28 +00:00
parent 41bc53b9da
commit 7146c6cf11
No known key found for this signature in database

View file

@ -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);
};