[Otaku Sanctuary] Fix hasNextPage (#16689)
* [Otaku Sanctuary] Fix hasNextPage * oops
This commit is contained in:
parent
7ee2bfc61e
commit
d9ea955199
@ -91,7 +91,8 @@ open class OtakuSanctuary(
|
|||||||
override fun popularMangaParse(response: Response): MangasPage {
|
override fun popularMangaParse(response: Response): MangasPage {
|
||||||
val document = response.asJsoup()
|
val document = response.asJsoup()
|
||||||
val collection = document.select("div.mdl-card")
|
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")
|
override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used")
|
||||||
|
@ -9,7 +9,7 @@ class OtakuSanctuaryGenerator : ThemeSourceGenerator {
|
|||||||
|
|
||||||
override val themeClass = "OtakuSanctuary"
|
override val themeClass = "OtakuSanctuary"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 3
|
override val baseVersionCode: Int = 4
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang(
|
MultiLang(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user