extension(weebcentral): Extract manga pages
This commit is contained in:
parent
b5807a2928
commit
e4e490cf63
1 changed files with 10 additions and 2 deletions
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue