Fix missing chapters in MM. (#9884)
This commit is contained in:
parent
f3b1dcb056
commit
84cb572efe
@ -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()
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user