mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
replace e-hentai to exhentai if domain is set to exhentai.org
This commit is contained in:
10
ehentai.js
10
ehentai.js
@@ -7,7 +7,7 @@ class Ehentai extends ComicSource {
|
|||||||
// unique id of the source
|
// unique id of the source
|
||||||
key = "ehentai"
|
key = "ehentai"
|
||||||
|
|
||||||
version = "1.0.6"
|
version = "1.0.7"
|
||||||
|
|
||||||
minAppVersion = "1.0.0"
|
minAppVersion = "1.0.0"
|
||||||
|
|
||||||
@@ -392,8 +392,14 @@ class Ehentai extends ComicSource {
|
|||||||
*/
|
*/
|
||||||
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}&=${page}`, true);
|
||||||
|
let comics = res.comics
|
||||||
|
if(this.loadSetting('domain') === 'exhentai.org') {
|
||||||
|
comics.forEach((e) => {
|
||||||
|
e.id = e.id.replace('e-hentai', 'exhentai')
|
||||||
|
})
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
comics: res.comics,
|
comics: comics,
|
||||||
maxPage: 200,
|
maxPage: 200,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
"name": "ehentai",
|
"name": "ehentai",
|
||||||
"fileName": "ehentai.js",
|
"fileName": "ehentai.js",
|
||||||
"key": "ehentai",
|
"key": "ehentai",
|
||||||
"version": "1.0.6"
|
"version": "1.0.7"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "禁漫天堂",
|
"name": "禁漫天堂",
|
||||||
|
Reference in New Issue
Block a user