Kouhai Work: fix missing alt titles (#10709)
This commit is contained in:
parent
a60274e18b
commit
93593a29f1
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Kouhai Work'
|
extName = 'Kouhai Work'
|
||||||
pkgNameSuffix = 'en.kouhaiwork'
|
pkgNameSuffix = 'en.kouhaiwork'
|
||||||
extClass = '.KouhaiWork'
|
extClass = '.KouhaiWork'
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -34,7 +34,7 @@ data class KouhaiSeries(
|
||||||
data class KouhaiSeriesDetails(
|
data class KouhaiSeriesDetails(
|
||||||
val synopsis: String,
|
val synopsis: String,
|
||||||
val status: String,
|
val status: String,
|
||||||
val alternative_titles: List<String>,
|
val alternative_titles: List<String>? = null,
|
||||||
val artists: List<KouhaiTag>? = null,
|
val artists: List<KouhaiTag>? = null,
|
||||||
val authors: List<KouhaiTag>? = null,
|
val authors: List<KouhaiTag>? = null,
|
||||||
val genres: List<KouhaiTag>? = null,
|
val genres: List<KouhaiTag>? = null,
|
||||||
|
@ -48,8 +48,9 @@ data class KouhaiSeriesDetails(
|
||||||
|
|
||||||
override fun toString() = buildString {
|
override fun toString() = buildString {
|
||||||
append(synopsis)
|
append(synopsis)
|
||||||
append("\n\nAlternative Names:\n")
|
alternative_titles?.joinTo(
|
||||||
alternative_titles.joinTo(this, "\n")
|
this, "\n", "\n\nAlternative Names:\n"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,10 +70,12 @@ data class KouhaiChapter(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toString() = buildString {
|
override fun toString() = buildString {
|
||||||
volume?.let { append("[Vol. $it] ") }
|
volume?.let {
|
||||||
|
append("[Vol. ").append(it).append("] ")
|
||||||
|
}
|
||||||
append("Chapter ")
|
append("Chapter ")
|
||||||
append(decimalFormat.format(number))
|
append(decimalFormat.format(number))
|
||||||
name?.let { append(" - $it") }
|
name?.let { append(" - ").append(it) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue