Fix E-Hentai browse

This commit is contained in:
Jobobby04 2022-11-02 18:05:42 -04:00
parent 83c741ceea
commit 61c2aee0c4

View File

@ -191,7 +191,14 @@ class EHentai(
tags += parsedTags
if (infoElements != null) {
genre = getGenre(infoElements.getOrNull(1))
genre = getGenre(
infoElements.getOrNull(1),
genreString = infoElements.getOrNull(1)
?.text()
?.nullIfBlank()
?.lowercase()
?.replace(" ", ""),
)
datePosted = getDateTag(infoElements.getOrNull(2))
@ -245,9 +252,7 @@ class EHentai(
it.text() == ">"
}
?: select(".searchnav >div > a")
.find { it.attr("href").contains("next") }
?.let { true }
?: false
.any { it.attr("href").contains("next") }
} else {
parsedLocation.queryParameter(REVERSE_PARAM)!!.toBoolean()
}