FlameComics: Conditional adjustment of titles (#7150)
* fix: Conditional adjustment of titles * fix: trailling comma
This commit is contained in:
parent
e86d2a850b
commit
d3d31ec815
|
@ -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"
|
||||||
|
|
|
@ -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}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue