* Fix for #14276 * increase versionCode Co-authored-by: Alec <alec.l@digipen.edu>
This commit is contained in:
parent
06f25624bb
commit
b71748e711
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'E-Hentai'
|
||||
pkgNameSuffix = 'all.ehentai'
|
||||
extClass = '.EHFactory'
|
||||
extVersionCode = 17
|
||||
extVersionCode = 18
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ abstract class EHentai(
|
|||
}
|
||||
|
||||
// Add to page if required
|
||||
val hasNextPage = doc.select("a[onclick=return false]").last()?.text() == ">"
|
||||
val hasNextPage = doc.select("a#unext[href]").hasText()
|
||||
|
||||
return MangasPage(parsedMangas, hasNextPage)
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ abstract class EHentai(
|
|||
private fun exGet(url: String, page: Int? = null, additionalHeaders: Headers? = null, cache: Boolean = true): Request {
|
||||
return GET(
|
||||
page?.let {
|
||||
addParam(url, "page", (page - 1).toString())
|
||||
addParam(url, "next", lastMangaId)
|
||||
} ?: url,
|
||||
additionalHeaders?.let { header ->
|
||||
val headers = headers.newBuilder()
|
||||
|
|
Loading…
Reference in New Issue