adjust stats summary in description

This commit is contained in:
wasu-code 2025-04-04 14:03:53 +02:00
parent da825cd735
commit 27596fe0e4

View file

@ -204,7 +204,7 @@ class NewGrounds : ParsedAnimeHttpSource(), ConfigurableAnimeSource {
val faves = statsElement?.selectFirst("dd:nth-of-type(2)")?.text() ?: "?" val faves = statsElement?.selectFirst("dd:nth-of-type(2)")?.text() ?: "?"
val votes = statsElement?.selectFirst("dd:nth-of-type(3)")?.text() ?: "?" val votes = statsElement?.selectFirst("dd:nth-of-type(3)")?.text() ?: "?"
return "👀 $views | ❤️ $faves | 👍 $votes" return "👀 $views | ❤️ $faves | 🗳️ $votes"
} }
fun prepareDescription(): String { fun prepareDescription(): String {
@ -213,7 +213,7 @@ class NewGrounds : ParsedAnimeHttpSource(), ConfigurableAnimeSource {
val shortDescription = document.selectFirst("meta[itemprop=\"description\"]")?.attr("content") val shortDescription = document.selectFirst("meta[itemprop=\"description\"]")?.attr("content")
val longDescription = document.selectFirst("#author_comments")?.wholeText() val longDescription = document.selectFirst("#author_comments")?.wholeText()
val statsSummary = "${getAdultRating()} | ${getStarRating()} | ${getStats()}" val statsSummary = "${getAdultRating()} | ${getStarRating()} | ${getStats()}"
val description = StringBuilder() val description = StringBuilder()