|
|
|
@ -134,6 +134,7 @@ internal abstract class MadaraParser(
|
|
|
|
"en curso",
|
|
|
|
"en curso",
|
|
|
|
"ongoing",
|
|
|
|
"ongoing",
|
|
|
|
"on going",
|
|
|
|
"on going",
|
|
|
|
|
|
|
|
"OnGoing",
|
|
|
|
"ativo",
|
|
|
|
"ativo",
|
|
|
|
"en cours",
|
|
|
|
"en cours",
|
|
|
|
"en cours \uD83D\uDFE2",
|
|
|
|
"en cours \uD83D\uDFE2",
|
|
|
|
@ -478,7 +479,7 @@ internal abstract class MadaraParser(
|
|
|
|
return elements.map { div ->
|
|
|
|
return elements.map { div ->
|
|
|
|
val href = div.selectFirstOrThrow("a").attrAsRelativeUrl("href")
|
|
|
|
val href = div.selectFirstOrThrow("a").attrAsRelativeUrl("href")
|
|
|
|
val summary = div.selectFirst(".tab-summary") ?: div.selectFirst(".item-summary")
|
|
|
|
val summary = div.selectFirst(".tab-summary") ?: div.selectFirst(".item-summary")
|
|
|
|
val author = summary?.selectFirst(".mg_author")?.selectFirst("a")?.ownText()
|
|
|
|
val author = summary?.selectFirst(".mg_author, .mg_artists")?.selectFirst("a")?.ownText()
|
|
|
|
Manga(
|
|
|
|
Manga(
|
|
|
|
id = generateUid(href),
|
|
|
|
id = generateUid(href),
|
|
|
|
url = href,
|
|
|
|
url = href,
|
|
|
|
@ -567,7 +568,7 @@ internal abstract class MadaraParser(
|
|
|
|
|
|
|
|
|
|
|
|
val href = doc.selectFirst("head meta[property='og:url']")?.attr("content")?.toRelativeUrl(domain) ?: manga.url
|
|
|
|
val href = doc.selectFirst("head meta[property='og:url']")?.attr("content")?.toRelativeUrl(domain) ?: manga.url
|
|
|
|
val testCheckAsync = doc.select(selectTestAsync)
|
|
|
|
val testCheckAsync = doc.select(selectTestAsync)
|
|
|
|
val chaptersDeferred = if (testCheckAsync.isNullOrEmpty()) {
|
|
|
|
val chaptersDeferred = if (testCheckAsync.isEmpty()) {
|
|
|
|
async { loadChapters(href, doc) }
|
|
|
|
async { loadChapters(href, doc) }
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
async { getChapters(manga, doc) }
|
|
|
|
async { getChapters(manga, doc) }
|
|
|
|
|