fix(source): handle MegaKino relative page links
This commit is contained in:
parent
41bc53b9da
commit
7146c6cf11
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue