diff --git a/src/pt/reaperscans/build.gradle b/src/pt/reaperscans/build.gradle index d0178481d..549ba0ab6 100644 --- a/src/pt/reaperscans/build.gradle +++ b/src/pt/reaperscans/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Reaper Scans' pkgNameSuffix = 'pt.reaperscans' extClass = '.ReaperScans' - extVersionCode = 32 + extVersionCode = 33 } apply from: "$rootDir/common.gradle" diff --git a/src/pt/reaperscans/src/eu/kanade/tachiyomi/extension/pt/reaperscans/ReaperScansDto.kt b/src/pt/reaperscans/src/eu/kanade/tachiyomi/extension/pt/reaperscans/ReaperScansDto.kt index 89d6b73ec..2b50a30a2 100644 --- a/src/pt/reaperscans/src/eu/kanade/tachiyomi/extension/pt/reaperscans/ReaperScansDto.kt +++ b/src/pt/reaperscans/src/eu/kanade/tachiyomi/extension/pt/reaperscans/ReaperScansDto.kt @@ -23,12 +23,14 @@ data class ReaperSeriesDto( ) { fun toSManga(): SManga = SManga.create().apply { + val descriptionBody = this@ReaperSeriesDto.description?.let(Jsoup::parseBodyFragment) + title = this@ReaperSeriesDto.title author = this@ReaperSeriesDto.author?.trim() artist = this@ReaperSeriesDto.studio?.trim() - description = this@ReaperSeriesDto.description - ?.let { Jsoup.parseBodyFragment(it).select("p") } + description = descriptionBody?.select("p") ?.joinToString("\n\n") { it.text() } + ?.ifEmpty { descriptionBody.text().replace("\n", "\n\n") } genre = tags.orEmpty() .sortedBy(ReaperTagDto::name) .joinToString { it.name }