From 5e7c11371bf43ea83d8d46d8e01ea34f2c0c55dd Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Sun, 2 May 2021 02:52:57 +0600 Subject: [PATCH] Cubari QoL Update (#6781) * Update Cubari.kt Volume defaults to "Uncategorized" so if volume is "Uncategorized" don't show volume. * Update build.gradle --- src/all/cubari/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/cubari/build.gradle b/src/all/cubari/build.gradle index 67500e21d..e8827699e 100644 --- a/src/all/cubari/build.gradle +++ b/src/all/cubari/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Cubari' pkgNameSuffix = "all.cubari" extClass = '.CubariFactory' - extVersionCode = 4 + extVersionCode = 5 libVersion = '1.2' } diff --git a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt index 7736cfc77..76013bde5 100644 --- a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt +++ b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt @@ -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"