From 1d8e5d7eb1d8f8b1b8ca8da558784514ec0a5ee8 Mon Sep 17 00:00:00 2001 From: MajorTanya <39014446+MajorTanya@users.noreply.github.com> Date: Thu, 9 Jul 2026 18:30:50 +0200 Subject: [PATCH] Fix underscore in Hikka media types (#3560) Currently, media types like "one_shot" will turn into "One_shot" in the search display due to Mihon capitalising the `publishing_type` attribute of `Track` for display. It is common for other tracker implementations to replace the underscore with a space which results in "One shot". This makes Hikka more consistent with other trackers. I added the nullability check since the docs do say `string | null` but that's neither here nor there. --- .../java/eu/kanade/tachiyomi/data/track/hikka/dto/HKManga.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/hikka/dto/HKManga.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/hikka/dto/HKManga.kt index 7624174d6..2260a2c32 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/hikka/dto/HKManga.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/hikka/dto/HKManga.kt @@ -16,7 +16,7 @@ data class HKManga( @SerialName("title_original") val titleOriginal: String, @SerialName("media_type") - val mediaType: String, + val mediaType: String?, @SerialName("title_ua") val titleUa: String? = null, @SerialName("title_en") @@ -45,7 +45,7 @@ data class HKManga( score = this@HKManga.score tracking_url = "${HikkaApi.BASE_URL}/manga/${this@HKManga.slug}" publishing_status = this@HKManga.status - publishing_type = this@HKManga.mediaType + publishing_type = this@HKManga.mediaType?.replace("_", " ").orEmpty() startDate?.takeIf { it != 0L }?.let { val outputDf = SimpleDateFormat("yyyy-MM-dd", Locale.US)