MangaThemesia: trim manga description (#15023)
This commit is contained in:
parent
f74b23e3ea
commit
57ad7c1174
|
@ -160,7 +160,7 @@ abstract class MangaThemesia(
|
||||||
title = seriesDetails.selectFirst(seriesTitleSelector)?.text().orEmpty()
|
title = seriesDetails.selectFirst(seriesTitleSelector)?.text().orEmpty()
|
||||||
artist = seriesDetails.selectFirst(seriesArtistSelector)?.ownText().removeEmptyPlaceholder()
|
artist = seriesDetails.selectFirst(seriesArtistSelector)?.ownText().removeEmptyPlaceholder()
|
||||||
author = seriesDetails.selectFirst(seriesAuthorSelector)?.ownText().removeEmptyPlaceholder()
|
author = seriesDetails.selectFirst(seriesAuthorSelector)?.ownText().removeEmptyPlaceholder()
|
||||||
description = seriesDetails.select(seriesDescriptionSelector).joinToString("\n") { it.text() }
|
description = seriesDetails.select(seriesDescriptionSelector).joinToString("\n") { it.text() }.trim()
|
||||||
// Add alternative name to manga description
|
// Add alternative name to manga description
|
||||||
val altName = seriesDetails.selectFirst(seriesAltNameSelector)?.ownText().takeIf { it.isNullOrBlank().not() }
|
val altName = seriesDetails.selectFirst(seriesAltNameSelector)?.ownText().takeIf { it.isNullOrBlank().not() }
|
||||||
altName?.let {
|
altName?.let {
|
||||||
|
|
|
@ -11,7 +11,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "MangaThemesia"
|
override val themeClass = "MangaThemesia"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 22
|
override val baseVersionCode: Int = 23
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 18),
|
MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 18),
|
||||||
|
|
Loading…
Reference in New Issue