From 3ef6a57aff09c6dbf318b4a36a126f9025cffcfd Mon Sep 17 00:00:00 2001 From: Stinggy Date: Tue, 9 Jun 2020 00:51:30 -0500 Subject: [PATCH] fix problems --- README.md | 2 ++ src/main/java/bot/nhentai/SoupPitcher.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6420c7a..8697b00 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ UPDATE: nhentai changed their UI as of 4/28/2020; bot has been updated to work w UPDATE #2 (4/29/2020): They rolled their UI back... +UPDATE #3 (6/9/2020): They fixed their UI and rolled it back out. Fix reapplied. + Join our Discord for support and vanilla doujins! [discord-invite]: https://discord.gg/FQCR6qu diff --git a/src/main/java/bot/nhentai/SoupPitcher.java b/src/main/java/bot/nhentai/SoupPitcher.java index 6c8fb52..d3340e8 100644 --- a/src/main/java/bot/nhentai/SoupPitcher.java +++ b/src/main/java/bot/nhentai/SoupPitcher.java @@ -120,7 +120,6 @@ public Instant getTimePosted() { } public int getPages() { - /* Elements divs = doc.select("span").select(".tags").select("a"); for (Element div : divs) { @@ -130,8 +129,8 @@ public int getPages() { } throw new NotFoundException("Page count not found."); - */ + /* Elements divs = doc.select("div").select("#info").select("div"); for (Element div : divs) { @@ -143,6 +142,7 @@ public int getPages() { } throw new NotFoundException("Page count not found."); + */ } public ArrayList getTags() {