MangaRock.es: Fixed description parsing (#10305)

This commit is contained in:
Troy121 2022-01-03 00:49:03 +01:00 committed by GitHub
parent 7228479af0
commit 0e05f3fad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaRock.es' extName = 'MangaRock.es'
pkgNameSuffix = 'en.mangarockes' pkgNameSuffix = 'en.mangarockes'
extClass = '.MangaRockEs' extClass = '.MangaRockEs'
extVersionCode = 2 extVersionCode = 3
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -127,7 +127,7 @@ class MangaRockEs : ParsedHttpSource() {
} }
} }
genre = document.select("div.tags a").joinToString { it.text() } genre = document.select("div.tags a").joinToString { it.text() }
description = document.select("div.full.summary p").filterNot { it.text().isNullOrEmpty() }.joinToString("\n") description = document.select("div.full.summary p").joinToString("\n") { it.text() }.trim()
} }
} }