[Madara] Update author/artist text to read each link and comma-separate properly with spaces (#8393)

This commit is contained in:
FlaminSarge 2021-08-04 04:15:41 -07:00 committed by GitHub
parent 5e4f67da3c
commit 7448de3f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -317,11 +317,15 @@ abstract class Madara(
select("div.post-title h3").first()?.let {
manga.title = it.ownText()
}
select("div.author-content").first()?.let {
if (it.text().notUpdating()) manga.author = it.text()
select("div.author-content > a").eachText().filter {
it.notUpdating()
}.joinToString().takeIf { it.isNotBlank() }?.let {
manga.author = it
}
select("div.artist-content").first()?.let {
if (it.text().notUpdating()) manga.artist = it.text()
select("div.artist-content > a").eachText().filter {
it.notUpdating()
}.joinToString().takeIf { it.isNotBlank() }?.let {
manga.artist = it
}
select("div.description-summary div.summary__content").let {
if (it.select("p").text().isNotEmpty()) {

View File

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