feat(oduto): Add chapter page extraction method

This commit is contained in:
xMohnad
2025-06-05 01:29:18 +00:00
parent e344c75616
commit 6c78018a6d

View File

@@ -83,4 +83,12 @@ class DefaultExtension extends MProvider {
chapters, chapters,
}; };
} }
// chapter pages
async getPageList(url) {
const doc = await this.request(url);
return doc.select("div.#post-body img[src]").map((x) => ({
url: x.attr("src"),
}));
}
} }