[Hitomi] Add Japanese Title for Manga Description (#4641)

This commit is contained in:
子斗子 2024-08-16 14:28:45 +08:00 committed by Draff
parent 0321569d77
commit 779155707a
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
3 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Hitomi' extName = 'Hitomi'
extClass = '.HitomiFactory' extClass = '.HitomiFactory'
extVersionCode = 32 extVersionCode = 33
isNsfw = true isNsfw = true
} }

View File

@ -517,6 +517,9 @@ class Hitomi(
"https://${subDomain}tn.$domain/webpbigtn/${thumbPathFromHash(hash)}/$hash.webp" "https://${subDomain}tn.$domain/webpbigtn/${thumbPathFromHash(hash)}/$hash.webp"
} }
description = buildString { description = buildString {
japaneseTitle?.let {
append("Japanese title: ", it, "\n")
}
parodys?.joinToString { it.formatted }?.let { parodys?.joinToString { it.formatted }?.let {
append("Series: ", it, "\n") append("Series: ", it, "\n")
} }

View File

@ -7,6 +7,7 @@ import kotlinx.serialization.json.JsonPrimitive
class Gallery( class Gallery(
val galleryurl: String, val galleryurl: String,
val title: String, val title: String,
val japaneseTitle: String?,
val date: String, val date: String,
val type: String?, val type: String?,
val language: String?, val language: String?,