diff --git a/src/ru/remanga/build.gradle b/src/ru/remanga/build.gradle index 463eb3b40..8cdef8c29 100644 --- a/src/ru/remanga/build.gradle +++ b/src/ru/remanga/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Remanga' pkgNameSuffix = 'ru.remanga' extClass = '.Remanga' - extVersionCode = 80 + extVersionCode = 81 } dependencies { diff --git a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt index 42aa4eb77..9a04c8a7b 100644 --- a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt +++ b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt @@ -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)