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 { ext {
extName = 'Flame Comics' extName = 'Flame Comics'
extClass = '.FlameComics' extClass = '.FlameComics'
extVersionCode = 38 extVersionCode = 39
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

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