From 779155707ac02f97cee8875555ddf83cd6692c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=96=97=E5=AD=90?= <1662093634@qq.com> Date: Fri, 16 Aug 2024 14:28:45 +0800 Subject: [PATCH] [Hitomi] Add Japanese Title for Manga Description (#4641) --- src/all/hitomi/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/hitomi/Hitomi.kt | 3 +++ .../src/eu/kanade/tachiyomi/extension/all/hitomi/HitomiDto.kt | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/all/hitomi/build.gradle b/src/all/hitomi/build.gradle index 9614b9576..215559e72 100644 --- a/src/all/hitomi/build.gradle +++ b/src/all/hitomi/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Hitomi' extClass = '.HitomiFactory' - extVersionCode = 32 + extVersionCode = 33 isNsfw = true } diff --git a/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/Hitomi.kt b/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/Hitomi.kt index 106631706..4e3aedc67 100644 --- a/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/Hitomi.kt +++ b/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/Hitomi.kt @@ -517,6 +517,9 @@ class Hitomi( "https://${subDomain}tn.$domain/webpbigtn/${thumbPathFromHash(hash)}/$hash.webp" } description = buildString { + japaneseTitle?.let { + append("Japanese title: ", it, "\n") + } parodys?.joinToString { it.formatted }?.let { append("Series: ", it, "\n") } diff --git a/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/HitomiDto.kt b/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/HitomiDto.kt index 32f930380..748b594bc 100644 --- a/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/HitomiDto.kt +++ b/src/all/hitomi/src/eu/kanade/tachiyomi/extension/all/hitomi/HitomiDto.kt @@ -7,6 +7,7 @@ import kotlinx.serialization.json.JsonPrimitive class Gallery( val galleryurl: String, val title: String, + val japaneseTitle: String?, val date: String, val type: String?, val language: String?,