Fixed manga description (#13084)

This commit is contained in:
Davide 2022-08-19 20:18:56 +02:00 committed by GitHub
parent b8b4e2746e
commit 254dbb2bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'mcreader.net'
pkgNameSuffix = 'en.mangarawclub'
extClass = '.MangaRawClub'
extVersionCode = 13
extVersionCode = 14
isNsfw = true
}

View File

@ -72,7 +72,7 @@ class MangaRawClub : ParsedHttpSource() {
manga.author = author
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() ?: ""
if (otherTitle.isNotEmpty() && otherTitle.lowercase(Locale.ROOT) != "updating")
@ -81,6 +81,9 @@ class MangaRawClub : ParsedHttpSource() {
manga.genre = document.select(".categories a[href*=genre]").joinToString(", ") {
it.attr("title").removeSuffix("Genre").trim()
.split(" ").joinToString(" ") { char ->
char.lowercase().replaceFirstChar { c -> c.uppercase() }
}
}
val statusElement = document.select("div.header-stats")