FlameComics: Conditional adjustment of titles (#7150)

* fix: Conditional adjustment of titles

* fix: trailling comma
This commit is contained in:
Hellkaros 2025-01-13 10:01:48 -03:00 committed by Draff
parent e86d2a850b
commit d3d31ec815
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -224,8 +224,10 @@ class FlameComics : HttpSource() {
chapter_number = chapter.chapter.toFloat()
date_upload = chapter.release_date * 1000
name = buildString {
append("Chapter ${chapter.chapter.toString().removeSuffix(".0")} ")
append(chapter.title ?: "")
append("Chapter ${chapter.chapter.toString().removeSuffix(".0")}")
if (!chapter.title.isNullOrBlank()) {
append(" - ${chapter.title}")
}
}
}
}