Madara: fix 1 pages issue for some source (#10182)

This commit is contained in:
Riztard Lanthorn 2021-12-21 19:54:45 +07:00 committed by GitHub
parent 47efb9dce9
commit af25e1d443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 18 deletions

View File

@ -1,7 +0,0 @@
package eu.kanade.tachiyomi.extension.en.manga1st
import eu.kanade.tachiyomi.multisrc.madara.Madara
class Manga1st : Madara("Manga1st", "https://manga1st.com", "en") {
override val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content .text-left:not(:has(.blocks-gallery-item)) img"
}

View File

@ -1,7 +0,0 @@
package eu.kanade.tachiyomi.extension.en.mangagreat
import eu.kanade.tachiyomi.multisrc.madara.Madara
class MangaGreat : Madara("MangaGreat", "https://mangagreat.com", "en") {
override val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content .text-left:not(:has(.blocks-gallery-item)) img"
}

View File

@ -4,6 +4,4 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManhuaUS : Madara("ManhuaUS", "https://manhuaus.com", "en") {
override val useNewChapterEndpoint: Boolean = true
override val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content .text-left:not(:has(.blocks-gallery-item)) img"
}

View File

@ -597,7 +597,7 @@ abstract class Madara(
return super.pageListRequest(chapter)
}
open val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content .text-left:not(:has(.blocks-gallery-item)) :has(>img)"
open val pageListParseSelector = "div.page-break, li.blocks-gallery-item, .reading-content .text-left:not(:has(.blocks-gallery-item)) img"
override fun pageListParse(document: Document): List<Page> {
countViews(document)

View File

@ -10,7 +10,7 @@ class MadaraGenerator : ThemeSourceGenerator {
override val themeClass = "Madara"
override val baseVersionCode: Int = 14
override val baseVersionCode: Int = 15
override val sources = listOf(
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 9),