[RU]Remanga description style newline (#18207)

This commit is contained in:
Eshlender 2023-09-30 19:33:02 +05:00 committed by GitHub
parent ba7391e17a
commit 5454e0f657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Remanga' extName = 'Remanga'
pkgNameSuffix = 'ru.remanga' pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga' extClass = '.Remanga'
extVersionCode = 80 extVersionCode = 81
} }
dependencies { dependencies {

View File

@ -381,13 +381,13 @@ class Remanga : ConfigurableSource, HttpSource() {
thumbnail_url = baseUrl + img.high thumbnail_url = baseUrl + img.high
var altName = "" var altName = ""
if (another_name.isNotEmpty()) { if (another_name.isNotEmpty()) {
altName = "Альтернативные названия:\n" + another_name + "\n\n" altName = "Альтернативные названия:\n" + another_name + "\n"
} }
val mediaNameLanguage = if (isEng.equals("rus")) en_name else rus_name val mediaNameLanguage = if (isEng.equals("rus")) en_name else rus_name
this.description = "$mediaNameLanguage\n$ratingStar $ratingValue (голосов: $count_rating)\n$altName" + this.description = "$mediaNameLanguage\n$ratingStar $ratingValue (голосов: $count_rating)\n$altName" +
o.description?.let { Jsoup.parseBodyFragment(it) } o.description?.let { Jsoup.parse(it) }
?.select("p") ?.select("body:not(:has(p)),p,br")
?.joinToString("\n") { it.text() } ?.prepend("\\n")?.text()?.replace("\\n", "\n")?.replace("\n ", "\n")
.orEmpty() .orEmpty()
genre = (parseType(type) + ", " + parseAge(age_limit) + ", " + (genres + categories).joinToString { it.name }).split(", ").filter { it.isNotEmpty() }.joinToString { it.trim() } genre = (parseType(type) + ", " + parseAge(age_limit) + ", " + (genres + categories).joinToString { it.name }).split(", ").filter { it.isNotEmpty() }.joinToString { it.trim() }
status = parseStatus(o.status.id) status = parseStatus(o.status.id)