Fix missing chapters in MM. (#9884)

This commit is contained in:
Alessandro Jean 2021-11-21 20:41:04 -03:00 committed by GitHub
parent f3b1dcb056
commit 84cb572efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class MeusMangas : MangaSar(
var hasNextPage = document.select(chapterListNextPageSelector())
.firstOrNull()
while (hasNextPage != null && !hasNextPage.attr("href").endsWith("#")) {
while (hasNextPage != null) {
val page = hasNextPage.attr("href")
.substringAfter("page/")
.toInt()
@ -115,7 +115,7 @@ class MeusMangas : MangaSar(
private fun chapterListSelector() = "ul.list-of-chapters li > a"
private fun chapterListNextPageSelector() = "div.loadmore a.loadmore"
private fun chapterListNextPageSelector() = "ul.content-pagination li.active + li:not(.next) a"
private fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
name = element.select("span.cap-text").text()

View File

@ -13,7 +13,7 @@ class MangaSarGenerator : ThemeSourceGenerator {
override val sources = listOf(
SingleLang("MangaTube", "https://mangatube.site", "pt-BR"),
SingleLang("Meus Mangás", "https://meusmangas.net", "pt-BR", isNsfw = true, className = "MeusMangas", overrideVersionCode = 1)
SingleLang("Meus Mangás", "https://meusmangas.net", "pt-BR", isNsfw = true, className = "MeusMangas", overrideVersionCode = 2)
)
companion object {