Fix Kouhai Scanlations (#9352)
This commit is contained in:
parent
b623778c6d
commit
6212a7bba0
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Kouhai Scanlations'
|
extName = 'Kouhai Scanlations'
|
||||||
pkgNameSuffix = 'en.kouhaiwork'
|
pkgNameSuffix = 'en.kouhaiwork'
|
||||||
extClass = '.KouhaiWork'
|
extClass = '.KouhaiWork'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -9,9 +9,9 @@ data class KouhaiSeries(
|
||||||
val cover: String,
|
val cover: String,
|
||||||
val synopsis: String,
|
val synopsis: String,
|
||||||
val status: String,
|
val status: String,
|
||||||
val artists: List<String>,
|
|
||||||
val authors: List<String>,
|
|
||||||
val alternative_titles: List<String>,
|
val alternative_titles: List<String>,
|
||||||
|
val artists: List<String>? = null,
|
||||||
|
val authors: List<String>? = null,
|
||||||
val genres: List<String>? = null,
|
val genres: List<String>? = null,
|
||||||
val themes: List<String>? = null,
|
val themes: List<String>? = null,
|
||||||
val demographics: List<String>? = null,
|
val demographics: List<String>? = null,
|
||||||
|
|
|
@ -66,9 +66,13 @@ class KouhaiWork : HttpSource() {
|
||||||
override fun fetchMangaDetails(manga: SManga) =
|
override fun fetchMangaDetails(manga: SManga) =
|
||||||
client.newCall(chapterListRequest(manga)).asObservableSuccess().map {
|
client.newCall(chapterListRequest(manga)).asObservableSuccess().map {
|
||||||
val series = it.data<KouhaiSeries>()
|
val series = it.data<KouhaiSeries>()
|
||||||
manga.description = series.synopsis
|
manga.description = buildString {
|
||||||
manga.author = series.authors.joinToString()
|
append(series.synopsis)
|
||||||
manga.artist = series.artists.joinToString()
|
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()
|
manga.genre = series.genres.orEmpty()
|
||||||
.plus(series.themes.orEmpty())
|
.plus(series.themes.orEmpty())
|
||||||
.plus(series.demographics.orEmpty())
|
.plus(series.demographics.orEmpty())
|
||||||
|
|
Loading…
Reference in New Issue