[Otaku Sanctuary] Fix hasNextPage (#16689)

* [Otaku Sanctuary] Fix hasNextPage

* oops
This commit is contained in:
beerpsi 2023-06-09 09:12:38 +07:00 committed by GitHub
parent 7ee2bfc61e
commit d9ea955199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

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

View File

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