From 9ee5e17b375e90ea59617d01125948d0a6d268e5 Mon Sep 17 00:00:00 2001 From: Artem Kuznetcov Date: Sat, 30 Nov 2024 20:54:34 +0300 Subject: [PATCH] Flame Comics: fix chapters naming (#6388) * FlameComics: fix chapters naming * FlameComics: replace DecimalFormat to toString and suffix removal --- src/en/flamecomics/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/en/flamecomics/build.gradle b/src/en/flamecomics/build.gradle index 46a89b078..be682977c 100644 --- a/src/en/flamecomics/build.gradle +++ b/src/en/flamecomics/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Flame Comics' extClass = '.FlameComics' - extVersionCode = 36 + extVersionCode = 37 } apply from: "$rootDir/common.gradle" diff --git a/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt b/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt index 8cc73955f..49db156b2 100644 --- a/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt +++ b/src/en/flamecomics/src/eu/kanade/tachiyomi/extension/en/flamecomics/FlameComics.kt @@ -223,7 +223,7 @@ class FlameComics : HttpSource() { chapter_number = chapter.chapter.toFloat() date_upload = chapter.release_date * 1000 name = buildString { - append("Chapter ${chapter.chapter.toInt()} ") + append("Chapter ${chapter.chapter.toString().removeSuffix(".0")} ") append(chapter.title ?: "") } }