[RU]Remanga description style newline (#18207)
This commit is contained in:
parent
ba7391e17a
commit
5454e0f657
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue