Skip to content

Commit

Permalink
Welovemanga.one : fix getting image (#7373)
Browse files Browse the repository at this point in the history
simple change of dataset value
  • Loading branch information
MikeZeDev committed Sep 7, 2024
1 parent d088844 commit f2f5931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/LoveHug.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ export default class WeLoveManga extends FlatManga {
const chapterid = (await this.fetchDOM(request, 'input#chapter'))[0].value;
request = new Request(new URL(`/app/manga/controllers/cont.listImg.php?cid=${chapterid}`, this.url), this.requestOptions);
const nodes = await this.fetchDOM(request, 'source.chapter-img:not([alt*="nicoscan"])');
return nodes.map(image => this.createConnectorURI(image.dataset.original.replace(/\n/g, '')));
return nodes.map(image => this.createConnectorURI(image.dataset.srcset.replace(/\n/g, '')));
}
}

0 comments on commit f2f5931

Please sign in to comment.