ZeistManga: Update pageListSelector and Tooncubus domain (#16127)
* Update pageListSelector and update Tooncubus domain * MangaAiLand: Remove deleted variables * KLManhua: Remove deleted variables * Noromax: Remove deleted variables * ShiyuraSub: Remove deleted variables
This commit is contained in:
parent
47dd979334
commit
a6983f0ac1
|
@ -4,4 +4,5 @@ import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
|
||||||
|
|
||||||
class AsupanKomik : ZeistManga("Asupan Komik", "https://www.asupankomik.my.id", "id") {
|
class AsupanKomik : ZeistManga("Asupan Komik", "https://www.asupankomik.my.id", "id") {
|
||||||
override val hasFilters = true
|
override val hasFilters = true
|
||||||
|
override val pageListSelector = "div.check-box"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,4 @@ class KLManhua : ZeistManga("KLManhua", "https://klmanhua.blogspot.com", "id") {
|
||||||
override fun getLanguageList(): List<Language> = listOf(
|
override fun getLanguageList(): List<Language> = listOf(
|
||||||
Language(intl.all, ""),
|
Language(intl.all, ""),
|
||||||
)
|
)
|
||||||
|
|
||||||
override val imgSelector = "a[href]"
|
|
||||||
override val imgSelectorAttr = "href"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,6 @@ class MangaAiLand : ZeistManga("Manga Ai Land", "https://manga-ai-land.blogspot.
|
||||||
|
|
||||||
override val hasFilters = true
|
override val hasFilters = true
|
||||||
|
|
||||||
override val imgSelector = "a[href]"
|
|
||||||
override val imgSelectorAttr = "href"
|
|
||||||
|
|
||||||
override fun getLanguageList(): List<Language> = listOf(
|
override fun getLanguageList(): List<Language> = listOf(
|
||||||
Language(intl.all, ""),
|
Language(intl.all, ""),
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,7 +5,4 @@ import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
|
||||||
class Noromax : ZeistManga("Noromax", "https://www.noromax.xyz", "id") {
|
class Noromax : ZeistManga("Noromax", "https://www.noromax.xyz", "id") {
|
||||||
|
|
||||||
override val hasFilters = true
|
override val hasFilters = true
|
||||||
|
|
||||||
override val imgSelector = "a[href]"
|
|
||||||
override val imgSelectorAttr = "href"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,6 @@ class ShiyuraSub : ZeistManga("ShiyuraSub", "https://shiyurasub.blogspot.com", "
|
||||||
|
|
||||||
override val hasFilters = true
|
override val hasFilters = true
|
||||||
|
|
||||||
override val imgSelector = "a[href]"
|
|
||||||
override val imgSelectorAttr = "href"
|
|
||||||
|
|
||||||
override fun getLanguageList(): List<Language> = listOf(
|
override fun getLanguageList(): List<Language> = listOf(
|
||||||
Language(intl.all, ""),
|
Language(intl.all, ""),
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,7 +8,9 @@ import eu.kanade.tachiyomi.util.asJsoup
|
||||||
import okhttp3.Response
|
import okhttp3.Response
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
|
|
||||||
class Tooncubus : ZeistManga("Tooncubus", "https://www.tooncubus.site", "id") {
|
class Tooncubus : ZeistManga("Tooncubus", "https://www.tooncubus.top", "id") {
|
||||||
|
|
||||||
|
override val pageListSelector = "div.check-box center"
|
||||||
|
|
||||||
override fun chapterListParse(response: Response): List<SChapter> {
|
override fun chapterListParse(response: Response): List<SChapter> {
|
||||||
return response.asJsoup().selectFirst("ul.series-chapterlist")!!.select("div.flexch-infoz").map { element ->
|
return response.asJsoup().selectFirst("ul.series-chapterlist")!!.select("div.flexch-infoz").map { element ->
|
||||||
|
|
|
@ -36,8 +36,7 @@ abstract class ZeistManga(
|
||||||
open val oldChapterFeedRegex = """([^']+)\?""".toRegex()
|
open val oldChapterFeedRegex = """([^']+)\?""".toRegex()
|
||||||
open val oldScriptSelector = "#myUL > script"
|
open val oldScriptSelector = "#myUL > script"
|
||||||
|
|
||||||
open val imgSelector = "img[src]"
|
open val pageListSelector = "div.check-box div.separator"
|
||||||
open val imgSelectorAttr = "src"
|
|
||||||
|
|
||||||
open fun getApiUrl(doc: Document): String {
|
open fun getApiUrl(doc: Document): String {
|
||||||
val script = doc.selectFirst(scriptSelector)
|
val script = doc.selectFirst(scriptSelector)
|
||||||
|
@ -145,9 +144,9 @@ abstract class ZeistManga(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val images = document.selectFirst("div.check-box")!!
|
val images = document.select(pageListSelector)
|
||||||
return images.select(imgSelector).mapIndexed { i, img ->
|
return images.select("img[src]").mapIndexed { i, img ->
|
||||||
Page(i, "", img.attr(imgSelectorAttr))
|
Page(i, "", img.attr("src"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ class ZeistMangaGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "ZeistManga"
|
override val themeClass = "ZeistManga"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 5
|
override val baseVersionCode: Int = 6
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("Asupan Komik", "https://www.asupankomik.my.id", "id", overrideVersionCode = 1),
|
SingleLang("Asupan Komik", "https://www.asupankomik.my.id", "id", overrideVersionCode = 1),
|
||||||
|
@ -20,7 +20,7 @@ class ZeistMangaGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Muslos No Sekai", "https://muslosnosekai.blogspot.com", "es"),
|
SingleLang("Muslos No Sekai", "https://muslosnosekai.blogspot.com", "es"),
|
||||||
SingleLang("Noromax", "https://www.noromax.xyz", "id"),
|
SingleLang("Noromax", "https://www.noromax.xyz", "id"),
|
||||||
SingleLang("ShiyuraSub", "https://shiyurasub.blogspot.com", "id"),
|
SingleLang("ShiyuraSub", "https://shiyurasub.blogspot.com", "id"),
|
||||||
SingleLang("Tooncubus", "https://www.tooncubus.site", "id", isNsfw = true),
|
SingleLang("Tooncubus", "https://www.tooncubus.top", "id", isNsfw = true),
|
||||||
)
|
)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Reference in New Issue