[Madara] Update author/artist text to read each link and comma-separate properly with spaces (#8393)
This commit is contained in:
parent
5e4f67da3c
commit
7448de3f32
|
@ -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()) {
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue