mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
check if the IP is banned
This commit is contained in:
@@ -195,6 +195,12 @@ class Ehentai extends ComicSource {
|
|||||||
Network.setCookies('https://exhentai.org', cookies)
|
Network.setCookies('https://exhentai.org', cookies)
|
||||||
throw `Exception: empty data\nYou may not have permission to access this page.`
|
throw `Exception: empty data\nYou may not have permission to access this page.`
|
||||||
}
|
}
|
||||||
|
if(res.body[0] !== '<') {
|
||||||
|
if(res.body.includes("IP")) {
|
||||||
|
throw "Your IP address has been banned"
|
||||||
|
}
|
||||||
|
throw "Failed to load page"
|
||||||
|
}
|
||||||
let document = new HtmlDocument(res.body);
|
let document = new HtmlDocument(res.body);
|
||||||
let galleries = [];
|
let galleries = [];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user