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:
seew3l 2023-04-23 18:10:19 -05:00 committed by GitHub
parent 47dd979334
commit a6983f0ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 20 deletions

View File

@ -4,4 +4,5 @@ import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
class AsupanKomik : ZeistManga("Asupan Komik", "https://www.asupankomik.my.id", "id") {
override val hasFilters = true
override val pageListSelector = "div.check-box"
}

View File

@ -10,7 +10,4 @@ class KLManhua : ZeistManga("KLManhua", "https://klmanhua.blogspot.com", "id") {
override fun getLanguageList(): List<Language> = listOf(
Language(intl.all, ""),
)
override val imgSelector = "a[href]"
override val imgSelectorAttr = "href"
}

View File

@ -8,9 +8,6 @@ class MangaAiLand : ZeistManga("Manga Ai Land", "https://manga-ai-land.blogspot.
override val hasFilters = true
override val imgSelector = "a[href]"
override val imgSelectorAttr = "href"
override fun getLanguageList(): List<Language> = listOf(
Language(intl.all, ""),
)

View File

@ -5,7 +5,4 @@ import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
class Noromax : ZeistManga("Noromax", "https://www.noromax.xyz", "id") {
override val hasFilters = true
override val imgSelector = "a[href]"
override val imgSelectorAttr = "href"
}

View File

@ -7,9 +7,6 @@ class ShiyuraSub : ZeistManga("ShiyuraSub", "https://shiyurasub.blogspot.com", "
override val hasFilters = true
override val imgSelector = "a[href]"
override val imgSelectorAttr = "href"
override fun getLanguageList(): List<Language> = listOf(
Language(intl.all, ""),
)

View File

@ -8,7 +8,9 @@ import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Response
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> {
return response.asJsoup().selectFirst("ul.series-chapterlist")!!.select("div.flexch-infoz").map { element ->

View File

@ -36,8 +36,7 @@ abstract class ZeistManga(
open val oldChapterFeedRegex = """([^']+)\?""".toRegex()
open val oldScriptSelector = "#myUL > script"
open val imgSelector = "img[src]"
open val imgSelectorAttr = "src"
open val pageListSelector = "div.check-box div.separator"
open fun getApiUrl(doc: Document): String {
val script = doc.selectFirst(scriptSelector)
@ -145,9 +144,9 @@ abstract class ZeistManga(
}
override fun pageListParse(document: Document): List<Page> {
val images = document.selectFirst("div.check-box")!!
return images.select(imgSelector).mapIndexed { i, img ->
Page(i, "", img.attr(imgSelectorAttr))
val images = document.select(pageListSelector)
return images.select("img[src]").mapIndexed { i, img ->
Page(i, "", img.attr("src"))
}
}

View File

@ -9,7 +9,7 @@ class ZeistMangaGenerator : ThemeSourceGenerator {
override val themeClass = "ZeistManga"
override val baseVersionCode: Int = 5
override val baseVersionCode: Int = 6
override val sources = listOf(
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("Noromax", "https://www.noromax.xyz", "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 {