* 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'
|
extName = 'E-Hentai'
|
||||||
pkgNameSuffix = 'all.ehentai'
|
pkgNameSuffix = 'all.ehentai'
|
||||||
extClass = '.EHFactory'
|
extClass = '.EHFactory'
|
||||||
extVersionCode = 17
|
extVersionCode = 18
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ abstract class EHentai(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to page if required
|
// 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)
|
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 {
|
private fun exGet(url: String, page: Int? = null, additionalHeaders: Headers? = null, cache: Boolean = true): Request {
|
||||||
return GET(
|
return GET(
|
||||||
page?.let {
|
page?.let {
|
||||||
addParam(url, "page", (page - 1).toString())
|
addParam(url, "next", lastMangaId)
|
||||||
} ?: url,
|
} ?: url,
|
||||||
additionalHeaders?.let { header ->
|
additionalHeaders?.let { header ->
|
||||||
val headers = headers.newBuilder()
|
val headers = headers.newBuilder()
|
||||||
|
|
Loading…
Reference in New Issue