From e66a5651bc347c0e4811b42300cf0bcb27b8bdbb Mon Sep 17 00:00:00 2001 From: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Date: Fri, 11 Aug 2023 21:46:57 -0300 Subject: [PATCH] Fix wrong type in YM (#17493) Fix wrong type in YM. --- src/pt/yomumangas/build.gradle | 2 +- .../kanade/tachiyomi/extension/pt/yomumangas/YomuMangasDto.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pt/yomumangas/build.gradle b/src/pt/yomumangas/build.gradle index c6f44e105..b79a7a163 100644 --- a/src/pt/yomumangas/build.gradle +++ b/src/pt/yomumangas/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Yomu Mangás' pkgNameSuffix = 'pt.yomumangas' extClass = '.YomuMangas' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/pt/yomumangas/src/eu/kanade/tachiyomi/extension/pt/yomumangas/YomuMangasDto.kt b/src/pt/yomumangas/src/eu/kanade/tachiyomi/extension/pt/yomumangas/YomuMangasDto.kt index 1cd28d131..1035ff92e 100644 --- a/src/pt/yomumangas/src/eu/kanade/tachiyomi/extension/pt/yomumangas/YomuMangasDto.kt +++ b/src/pt/yomumangas/src/eu/kanade/tachiyomi/extension/pt/yomumangas/YomuMangasDto.kt @@ -70,13 +70,13 @@ data class YomuMangasChaptersDto(val chapters: List = empt @Serializable data class YomuMangasChapterDto( val id: Int, - val chapter: Int, + val chapter: Float, @SerialName("uploaded_at") val uploadedAt: String, val images: List? = emptyList(), ) { fun toSChapter(series: YomuMangasSeriesDto): SChapter = SChapter.create().apply { - name = "Capítulo $chapter" + name = "Capítulo ${chapter.toString().removeSuffix(".0")}" date_upload = runCatching { DATE_FORMATTER.parse(uploadedAt)?.time } .getOrNull() ?: 0L url = "/manga/${series.id}/${series.slug}/chapter/$id#$chapter"