Fix chapters not loading in MMK. (#8159)
|
@ -6,8 +6,9 @@ ext {
|
|||
extName = 'Mundo Mangá-Kun'
|
||||
pkgNameSuffix = 'pt.mundomangakun'
|
||||
extClass = '.MundoMangaKun'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 41 KiB |
|
@ -1,5 +1,6 @@
|
|||
package eu.kanade.tachiyomi.extension.pt.mundomangakun
|
||||
|
||||
import eu.kanade.tachiyomi.annotations.Nsfw
|
||||
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
import eu.kanade.tachiyomi.source.model.Filter
|
||||
|
@ -22,6 +23,7 @@ import org.jsoup.nodes.Element
|
|||
import uy.kohesive.injekt.injectLazy
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
@Nsfw
|
||||
class MundoMangaKun : ParsedHttpSource() {
|
||||
|
||||
override val name = "Mundo Mangá-Kun"
|
||||
|
@ -137,9 +139,9 @@ class MundoMangaKun : ParsedHttpSource() {
|
|||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select("script:containsData(var paginas)").first().data()
|
||||
.substringAfter("var paginas=")
|
||||
.substringBefore(";var")
|
||||
.let { json.parseToJsonElement(it) }
|
||||
.substringAfter("var paginas = ")
|
||||
.substringBefore("];")
|
||||
.let { json.parseToJsonElement("$it]") }
|
||||
.jsonArray
|
||||
.mapIndexed { i, page -> Page(i, document.location(), page.jsonPrimitive.content) }
|
||||
}
|
||||
|
|