diff --git a/src/all/ehentai/build.gradle b/src/all/ehentai/build.gradle index 49574bf47..d6879e2de 100644 --- a/src/all/ehentai/build.gradle +++ b/src/all/ehentai/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'E-Hentai' pkgNameSuffix = 'all.ehentai' extClass = '.EHFactory' - extVersionCode = 17 + extVersionCode = 18 isNsfw = true } diff --git a/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt b/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt index 2a057f5af..3770d6b44 100644 --- a/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt +++ b/src/all/ehentai/src/eu/kanade/tachiyomi/extension/all/ehentai/EHentai.kt @@ -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()