ManhwaLatino: Fix unable to read chapters (#15984)

Fix again
This commit is contained in:
seew3l 2023-04-07 09:22:24 -05:00 committed by GitHub
parent 80ae017310
commit 2bb5c59135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -27,10 +27,13 @@ class ManhwaLatino : Madara(
override val chapterUrlSelector = "a:eq(1)"
override val mangaDetailsSelectorStatus = "div.post-content_item:contains(Estado del comic) > div.summary-content"
override fun pageListParse(document: Document): List<Page> {
val script = document.selectFirst("div.read-container script")
?: return super.pageListParse(document)
val scriptData: String = if (script!!.hasAttr("src")) {
val scriptData: String = if (script.hasAttr("src")) {
client.newCall(GET(script.attr("src"), headers)).execute().body.string()
} else {
script.data()

View File

@ -734,7 +734,7 @@ abstract class Madara(
"OnGoing", "Продолжается", "Updating", "Em Lançamento", "Em lançamento", "Em andamento",
"Em Andamento", "En cours", "Ativo", "Lançando", "Đang Tiến Hành", "Devam Ediyor",
"Devam ediyor", "In Corso", "In Arrivo", "مستمرة", "مستمر", "En Curso", "En curso", "Emision",
"En marcha", "连载中",
"En marcha", "Publicandose", "连载中",
)
protected val hiatusStatusList: Array<String> = arrayOf(

View File

@ -281,7 +281,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ManhuaUS", "https://manhuaus.com", "en", overrideVersionCode = 5),
SingleLang("ManhuaZone", "https://manhuazone.com", "en"),
SingleLang("Manhwa Raw", "https://manhwaraw.com", "ko", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manhwa-Latino", "https://manhwa-latino.com", "es", isNsfw = true, className = "ManhwaLatino", overrideVersionCode = 1),
SingleLang("Manhwa-Latino", "https://manhwa-latino.com", "es", isNsfw = true, className = "ManhwaLatino", overrideVersionCode = 2),
SingleLang("Manhwa-raw", "https://manhwa-raw.com", "all", isNsfw = true, className = "ManhwaDashRaw"),
SingleLang("Manhwa18.app", "https://manhwa18.app", "en", isNsfw = true, className = "Manhwa18app"),
SingleLang("Manhwa18.org", "https://manhwa18.org", "en", isNsfw = true, className = "Manhwa18Org", overrideVersionCode = 2),