diff --git a/src/pt/readmangas/build.gradle b/src/pt/readmangas/build.gradle index f072faa2f..6c419cb21 100644 --- a/src/pt/readmangas/build.gradle +++ b/src/pt/readmangas/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Read Mangas' extClass = '.ReadMangas' - extVersionCode = 32 + extVersionCode = 33 } apply from: "$rootDir/common.gradle" diff --git a/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt b/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt index 3f1f9795c..e00cb1716 100644 --- a/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt +++ b/src/pt/readmangas/src/eu/kanade/tachiyomi/extension/pt/readmangas/ReadMangas.kt @@ -32,7 +32,7 @@ class ReadMangas() : HttpSource() { override val name = "Read Mangas" - override val baseUrl = "https://readmangas.org" + override val baseUrl = "https://app.loobyt.com" override val lang = "pt-BR" @@ -247,13 +247,12 @@ class ReadMangas() : HttpSource() { override fun pageListParse(response: Response): List { val document = response.asJsoup() - val script = document.select("script").map { it.data() } - .firstOrNull { IMAGE_URL_REGEX.containsMatchIn(it) } - ?: return emptyList() - - return IMAGE_URL_REGEX.findAll(script).mapIndexed { index, match -> + val scripts = document.select("script").joinToString("\n") { it.data() } + val pages = IMAGE_URL_REGEX.findAll(scripts).mapIndexed { index, match -> Page(index, imageUrl = match.groups["imageUrl"]!!.value) }.toList() + + return pages } override fun imageUrlParse(response: Response) = ""