From c28227c252bed898e4595e08b761032ec33899e2 Mon Sep 17 00:00:00 2001 From: Leone Jacob Sunil <109210868+ImLJS@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:16:25 +0530 Subject: [PATCH] Update Mvlempyr Chapter Titles --- plugin/js/parsers/MvlempyrParser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/js/parsers/MvlempyrParser.js b/plugin/js/parsers/MvlempyrParser.js index 8cc8609f..ba352bc7 100644 --- a/plugin/js/parsers/MvlempyrParser.js +++ b/plugin/js/parsers/MvlempyrParser.js @@ -11,6 +11,7 @@ class MvlempyrParser extends Parser { let imgLink = dom.querySelector("div.novel-image-wrapper img").src; let slug = imgLink.split("/").pop().split(".")[0]; let chapterCount = parseInt(dom.querySelector("div#chapter-count").textContent); + let chapterTitles = [...dom.querySelectorAll("div.chapter-item h3")].map((el) => el.textContent.replace(/^\d+\.\s*/, "")); let chapterList = []; @@ -18,7 +19,7 @@ class MvlempyrParser extends Parser { let link = `https://www.mvlempyr.com/chapter/${slug}-${i}`; chapterList.push({ sourceUrl: link, - title: "[placeholder]", + title: chapterTitles[i-1], }); } return chapterList;