Madara: fix pages empty for some source (#9861)
* ManhuaUS: fix page issue in some chapter * Revert some thing * Madara: fix pages empty for some source add pages selector to madara factory * some cleaning * cleaning
This commit is contained in:
parent
bd6b07c9f9
commit
c3f8186ac6
|
@ -1,7 +0,0 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.manga68
|
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
|
||||||
|
|
||||||
class Manga68 : Madara("Manga68", "https://manga68.com", "en") {
|
|
||||||
override val pageListParseSelector = "div.page-break, div.text-left p"
|
|
||||||
}
|
|
|
@ -7,4 +7,3 @@ import java.util.Locale
|
||||||
class MangaChill : Madara("Manga Chill", "https://mangachill.com", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
|
class MangaChill : Madara("Manga Chill", "https://mangachill.com", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
|
||||||
override val useNewChapterEndpoint: Boolean = true
|
override val useNewChapterEndpoint: Boolean = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ class MangaKitsune : Madara("MangaKitsune", "https://mangakitsune.com", "en", da
|
||||||
|
|
||||||
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).reversed()
|
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).reversed()
|
||||||
|
|
||||||
override val pageListParseSelector = ".reading-content div.text-left :has(>img)"
|
|
||||||
|
|
||||||
override fun getGenreList() = listOf(
|
override fun getGenreList() = listOf(
|
||||||
Genre("Action", "action"),
|
Genre("Action", "action"),
|
||||||
Genre("Adult", "adult"),
|
Genre("Adult", "adult"),
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 8.8 KiB |
|
@ -1,7 +0,0 @@
|
||||||
package eu.kanade.tachiyomi.extension.en.manhuabox
|
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
|
||||||
|
|
||||||
class ManhuaBox : Madara("ManhuaBox", "https://manhuabox.net", "en") {
|
|
||||||
override val pageListParseSelector = "div.page-break, div.text-left p img"
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 27 KiB |
|
@ -7,8 +7,6 @@ import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
|
|
||||||
class ManhuaES : Madara("Manhua ES", "https://manhuaes.com", "en") {
|
class ManhuaES : Madara("Manhua ES", "https://manhuaes.com", "en") {
|
||||||
override val pageListParseSelector = ".reading-content div.text-left :has(>img)"
|
|
||||||
|
|
||||||
override fun chapterListParse(response: Response): List<SChapter> {
|
override fun chapterListParse(response: Response): List<SChapter> {
|
||||||
var chapterList = super.chapterListParse(response)
|
var chapterList = super.chapterListParse(response)
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,6 @@ class Rh2PlusManga : Madara("Rh2PlusManga", "https://www.rh2plusmanga.com", "th"
|
||||||
Genre("ลามก", "ecchi")
|
Genre("ลามก", "ecchi")
|
||||||
)
|
)
|
||||||
|
|
||||||
override val pageListParseSelector = "div.reading-content p code img"
|
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
countViews(document)
|
countViews(document)
|
||||||
|
|
||||||
|
|
|
@ -16,5 +16,4 @@ class ShieldManga : Madara("Shield Manga", "https://shieldmanga.club", "en") {
|
||||||
|
|
||||||
override fun chapterListSelector() = "li.wp-manga-hapter, .version-chap li"
|
override fun chapterListSelector() = "li.wp-manga-hapter, .version-chap li"
|
||||||
|
|
||||||
override val pageListParseSelector = "div.page-beak, .reading-content div"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -574,7 +574,7 @@ abstract class Madara(
|
||||||
return super.pageListRequest(chapter)
|
return super.pageListRequest(chapter)
|
||||||
}
|
}
|
||||||
|
|
||||||
open val pageListParseSelector = "div.page-break, li.blocks-gallery-item"
|
open val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content .text-left:not(:has(.blocks-gallery-item)) :has(>img)"
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
countViews(document)
|
countViews(document)
|
||||||
|
|
|
@ -10,7 +10,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "Madara"
|
override val themeClass = "Madara"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 11
|
override val baseVersionCode: Int = 12
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 9),
|
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 9),
|
||||||
|
|
Loading…
Reference in New Issue