extension(weebcentral): Extract manga pages

This commit is contained in:
Swakshan
2025-01-29 21:56:16 +05:30
parent 3a78c966b8
commit 836cbfc734

View File

@@ -6,7 +6,7 @@ const mangayomiSources = [{
"iconUrl": "https://www.google.com/s2/favicons?sz=128&domain=https://weebcentral.com", "iconUrl": "https://www.google.com/s2/favicons?sz=128&domain=https://weebcentral.com",
"typeSource": "single", "typeSource": "single",
"itemType": 0, "itemType": 0,
"version": "0.0.2", "version": "0.0.3",
"pkgPath": "manga/src/en/weebcentral.js" "pkgPath": "manga/src/en/weebcentral.js"
}]; }];
@@ -122,8 +122,16 @@ class DefaultExtension extends MProvider {
} }
// For manga chapter pages // For manga chapter pages
async getPageList(url) { async getPageList(url) {
throw new Error("getPageList not implemented"); var slug = `/chapters/${url}/images?current_page=1&reading_style=long_strip`
var doc = await this.request(slug);
var urls = [];
doc.select("section > img").forEach(page=>urls.push(page.attr("src")))
return urls
} }
getFilterList() { getFilterList() {
throw new Error("getFilterList not implemented"); throw new Error("getFilterList not implemented");
} }