[ehentai] fix ranking page

This commit is contained in:
2025-02-26 10:04:46 +08:00
parent 4d0b11d9be
commit 06643e6a9b
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ class Ehentai extends ComicSource {
// unique id of the source // unique id of the source
key = "ehentai" key = "ehentai"
version = "1.1.2" version = "1.1.3"
minAppVersion = "1.0.0" minAppVersion = "1.0.0"
@@ -409,7 +409,7 @@ class Ehentai extends ComicSource {
* @returns {Promise<{comics: Comic[], maxPage: number}>} * @returns {Promise<{comics: Comic[], maxPage: number}>}
*/ */
load: async (option, page) => { load: async (option, page) => {
let res = await this.getGalleries(`https://e-hentai.org/toplist.php?tl=${option}&=${page}`, true); let res = await this.getGalleries(`https://e-hentai.org/toplist.php?tl=${option}&p=${page-1}`, true);
let comics = res.comics let comics = res.comics
if(this.loadSetting('domain') === 'exhentai.org') { if(this.loadSetting('domain') === 'exhentai.org') {
comics.forEach((e) => { comics.forEach((e) => {

View File

@@ -39,7 +39,7 @@
"name": "ehentai", "name": "ehentai",
"fileName": "ehentai.js", "fileName": "ehentai.js",
"key": "ehentai", "key": "ehentai",
"version": "1.1.2" "version": "1.1.3"
}, },
{ {
"name": "禁漫天堂", "name": "禁漫天堂",