diff --git a/src/en/kouhaiwork/build.gradle b/src/en/kouhaiwork/build.gradle index 7092fad4b..7c629977b 100644 --- a/src/en/kouhaiwork/build.gradle +++ b/src/en/kouhaiwork/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Kouhai Scanlations' pkgNameSuffix = 'en.kouhaiwork' extClass = '.KouhaiWork' - extVersionCode = 1 + extVersionCode = 2 } apply from: "$rootDir/common.gradle" diff --git a/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiModels.kt b/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiModels.kt index 59fc77caf..8363ae17e 100644 --- a/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiModels.kt +++ b/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiModels.kt @@ -9,9 +9,9 @@ data class KouhaiSeries( val cover: String, val synopsis: String, val status: String, - val artists: List, - val authors: List, val alternative_titles: List, + val artists: List? = null, + val authors: List? = null, val genres: List? = null, val themes: List? = null, val demographics: List? = null, diff --git a/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt b/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt index 18e4f628a..b0f8487d6 100644 --- a/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt +++ b/src/en/kouhaiwork/src/eu/kanade/tachiyomi/extension/en/kouhaiwork/KouhaiWork.kt @@ -66,9 +66,13 @@ class KouhaiWork : HttpSource() { override fun fetchMangaDetails(manga: SManga) = client.newCall(chapterListRequest(manga)).asObservableSuccess().map { val series = it.data() - manga.description = series.synopsis - manga.author = series.authors.joinToString() - manga.artist = series.artists.joinToString() + manga.description = buildString { + append(series.synopsis) + append("\n\nAlternative Names:\n") + series.alternative_titles.joinTo(this, "\n") + } + manga.author = series.authors?.joinToString() + manga.artist = series.artists?.joinToString() manga.genre = series.genres.orEmpty() .plus(series.themes.orEmpty()) .plus(series.demographics.orEmpty())