Fix E-Hentai browse
This commit is contained in:
parent
83c741ceea
commit
61c2aee0c4
@ -191,7 +191,14 @@ class EHentai(
|
|||||||
tags += parsedTags
|
tags += parsedTags
|
||||||
|
|
||||||
if (infoElements != null) {
|
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))
|
datePosted = getDateTag(infoElements.getOrNull(2))
|
||||||
|
|
||||||
@ -245,9 +252,7 @@ class EHentai(
|
|||||||
it.text() == ">"
|
it.text() == ">"
|
||||||
}
|
}
|
||||||
?: select(".searchnav >div > a")
|
?: select(".searchnav >div > a")
|
||||||
.find { it.attr("href").contains("next") }
|
.any { it.attr("href").contains("next") }
|
||||||
?.let { true }
|
|
||||||
?: false
|
|
||||||
} else {
|
} else {
|
||||||
parsedLocation.queryParameter(REVERSE_PARAM)!!.toBoolean()
|
parsedLocation.queryParameter(REVERSE_PARAM)!!.toBoolean()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user