[RU]Remanga description style newline (#18207)
This commit is contained in:
parent
ba7391e17a
commit
5454e0f657
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Remanga'
|
||||
pkgNameSuffix = 'ru.remanga'
|
||||
extClass = '.Remanga'
|
||||
extVersionCode = 80
|
||||
extVersionCode = 81
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -381,13 +381,13 @@ class Remanga : ConfigurableSource, HttpSource() {
|
|||
thumbnail_url = baseUrl + img.high
|
||||
var altName = ""
|
||||
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
|
||||
this.description = "$mediaNameLanguage\n$ratingStar $ratingValue (голосов: $count_rating)\n$altName" +
|
||||
o.description?.let { Jsoup.parseBodyFragment(it) }
|
||||
?.select("p")
|
||||
?.joinToString("\n") { it.text() }
|
||||
o.description?.let { Jsoup.parse(it) }
|
||||
?.select("body:not(:has(p)),p,br")
|
||||
?.prepend("\\n")?.text()?.replace("\\n", "\n")?.replace("\n ", "\n")
|
||||
.orEmpty()
|
||||
genre = (parseType(type) + ", " + parseAge(age_limit) + ", " + (genres + categories).joinToString { it.name }).split(", ").filter { it.isNotEmpty() }.joinToString { it.trim() }
|
||||
status = parseStatus(o.status.id)
|
||||
|
|
Loading…
Reference in New Issue