MangaCatalog: Updated page parsing to exclude ads (#10131)
This commit is contained in:
parent
2cb8aad759
commit
96a82c1673
|
@ -101,10 +101,9 @@ abstract class MangaCatalog(
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> = mutableListOf<Page>().apply {
|
override fun pageListParse(document: Document): List<Page> =
|
||||||
document.select(".text-center img,.img_container img").forEach { img ->
|
document.select(".js-pages-container img.js-page,.img_container img").mapIndexed { index, img ->
|
||||||
add(Page(size, "", img.attr("src")))
|
Page(index, "", img.attr("src"))
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun imageUrlParse(document: Document): String = throw Exception("Not Used")
|
override fun imageUrlParse(document: Document): String = throw Exception("Not Used")
|
||||||
|
|
|
@ -9,7 +9,7 @@ class MangaCatalogGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "MangaCatalog"
|
override val themeClass = "MangaCatalog"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 2
|
override val baseVersionCode: Int = 3
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("Read Boku no Hero Academia My Hero Academia Manga", "https://ww6.readmha.com", "en", className = "ReadBokuNoHeroAcademiaMyHeroAcademiaManga", overrideVersionCode = 2),
|
SingleLang("Read Boku no Hero Academia My Hero Academia Manga", "https://ww6.readmha.com", "en", className = "ReadBokuNoHeroAcademiaMyHeroAcademiaManga", overrideVersionCode = 2),
|
||||||
|
|
Loading…
Reference in New Issue