* Fix for #14276

* increase versionCode

Co-authored-by: Alec <alec.l@digipen.edu>
This commit is contained in:
Ritox2 2022-11-20 08:09:12 -08:00 committed by GitHub
parent 06f25624bb
commit b71748e711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
} }

View File

@ -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()