From 66615df76d7293030cf2415673f6df9f2a3bd668 Mon Sep 17 00:00:00 2001 From: Wackery <32279125+webmsgr@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:35:48 -0700 Subject: [PATCH] HeanCMS: Add chapter title support (#4447) --- lib-multisrc/heancms/build.gradle.kts | 2 +- .../src/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib-multisrc/heancms/build.gradle.kts b/lib-multisrc/heancms/build.gradle.kts index 1b94b6c7e..7aabb2b3d 100644 --- a/lib-multisrc/heancms/build.gradle.kts +++ b/lib-multisrc/heancms/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("lib-multisrc") } -baseVersionCode = 26 +baseVersionCode = 27 dependencies { api(project(":lib:i18n")) diff --git a/lib-multisrc/heancms/src/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt b/lib-multisrc/heancms/src/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt index e74df068e..f9e696a31 100644 --- a/lib-multisrc/heancms/src/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt +++ b/lib-multisrc/heancms/src/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsDto.kt @@ -103,6 +103,7 @@ class HeanCmsChapterPayloadDto( class HeanCmsChapterDto( private val id: Int, @SerialName("chapter_name") private val name: String, + @SerialName("chapter_title") private val title: String? = null, @SerialName("chapter_slug") private val slug: String, @SerialName("created_at") private val createdAt: String, val price: Int? = null, @@ -114,6 +115,10 @@ class HeanCmsChapterDto( ): SChapter = SChapter.create().apply { name = this@HeanCmsChapterDto.name.trim() + if (title != null) { + name += " - ${title.trim()}" + } + if (price != 0) { name += " \uD83D\uDD12" }