Fixed manga description (#13084)
This commit is contained in:
parent
b8b4e2746e
commit
254dbb2bf7
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'mcreader.net'
|
extName = 'mcreader.net'
|
||||||
pkgNameSuffix = 'en.mangarawclub'
|
pkgNameSuffix = 'en.mangarawclub'
|
||||||
extClass = '.MangaRawClub'
|
extClass = '.MangaRawClub'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ class MangaRawClub : ParsedHttpSource() {
|
||||||
manga.author = author
|
manga.author = author
|
||||||
|
|
||||||
var description = document.select(".description").first()?.text() ?: ""
|
var description = document.select(".description").first()?.text() ?: ""
|
||||||
description = description.substringAfter("The Summary is").trim()
|
description = description.substringAfter("»——").trim()
|
||||||
|
|
||||||
val otherTitle = document.select(".alternative-title").first()?.text()?.trim() ?: ""
|
val otherTitle = document.select(".alternative-title").first()?.text()?.trim() ?: ""
|
||||||
if (otherTitle.isNotEmpty() && otherTitle.lowercase(Locale.ROOT) != "updating")
|
if (otherTitle.isNotEmpty() && otherTitle.lowercase(Locale.ROOT) != "updating")
|
||||||
|
@ -81,6 +81,9 @@ class MangaRawClub : ParsedHttpSource() {
|
||||||
|
|
||||||
manga.genre = document.select(".categories a[href*=genre]").joinToString(", ") {
|
manga.genre = document.select(".categories a[href*=genre]").joinToString(", ") {
|
||||||
it.attr("title").removeSuffix("Genre").trim()
|
it.attr("title").removeSuffix("Genre").trim()
|
||||||
|
.split(" ").joinToString(" ") { char ->
|
||||||
|
char.lowercase().replaceFirstChar { c -> c.uppercase() }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val statusElement = document.select("div.header-stats")
|
val statusElement = document.select("div.header-stats")
|
||||||
|
|
Loading…
Reference in New Issue