Cubari QoL Update (#6781)

* Update Cubari.kt

Volume defaults to "Uncategorized" so if volume is "Uncategorized" don't show volume.

* Update build.gradle
This commit is contained in:
FourTOne5 2021-05-02 02:52:57 +06:00 committed by GitHub
parent 9b00d811d6
commit 5e7c11371b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Cubari'
pkgNameSuffix = "all.cubari"
extClass = '.CubariFactory'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
}

View File

@ -286,7 +286,7 @@ open class Cubari(override val lang: String) : HttpSource() {
}
chapter.date_upload = seriesPrefs.getLong(chapterNum, currentTimeMillis)
}
chapter.name = if (chapterObj.has("volume")) {
chapter.name = if (chapterObj.getString("volume") != "Uncategorized") {
"Vol. " + chapterObj.getString("volume") + " Ch. " + chapterNum + " - " + chapterObj.getString("title")
//Output "Vol. 1 Ch. 1 - Chapter Name"