diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt index e2259d7ed..2fd84def8 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuary.kt @@ -91,7 +91,8 @@ open class OtakuSanctuary( override fun popularMangaParse(response: Response): MangasPage { val document = response.asJsoup() val collection = document.select("div.mdl-card") - return MangasPage(parseMangaCollection(collection), collection.size >= 24) + val hasNextPage = !document.select("button.btn-loadmore").text().contains("Hết") + return MangasPage(parseMangaCollection(collection), hasNextPage) } override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuaryGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuaryGenerator.kt index 6adb26f54..ca3a70e49 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuaryGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/otakusanctuary/OtakuSanctuaryGenerator.kt @@ -9,7 +9,7 @@ class OtakuSanctuaryGenerator : ThemeSourceGenerator { override val themeClass = "OtakuSanctuary" - override val baseVersionCode: Int = 3 + override val baseVersionCode: Int = 4 override val sources = listOf( MultiLang(