Flame Comics: fix chapters naming ()

* FlameComics: fix chapters naming

* FlameComics: replace DecimalFormat to toString and suffix removal
This commit is contained in:
Artem Kuznetcov 2024-11-30 20:54:34 +03:00 committed by Draff
parent bac2cb25fb
commit 9ee5e17b37
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions
src/en/flamecomics
build.gradle
src/eu/kanade/tachiyomi/extension/en/flamecomics

@ -1,7 +1,7 @@
ext {
extName = 'Flame Comics'
extClass = '.FlameComics'
extVersionCode = 36
extVersionCode = 37
}
apply from: "$rootDir/common.gradle"

@ -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 ?: "")
}
}