diff --git a/src/all/cubari/build.gradle b/src/all/cubari/build.gradle index ad06cd448..900e4677d 100644 --- a/src/all/cubari/build.gradle +++ b/src/all/cubari/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Cubari' pkgNameSuffix = "all.cubari" extClass = '.CubariFactory' - extVersionCode = 15 + extVersionCode = 16 } apply from: "$rootDir/common.gradle" 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 49212b3d6..965022b30 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 @@ -352,7 +352,13 @@ open class Cubari(override val lang: String) : HttpSource() { val descriptionFull = jsonObj["description"]?.jsonPrimitive?.content description = descriptionFull?.substringBefore("Tags: ") ?: DESCRIPTION_FALLBACK - genre = if (descriptionFull!!.contains("Tags: ")) descriptionFull?.substringAfter("Tags: ") else "" + genre = descriptionFull?.let { + if (it.contains("Tags: ")) { + it.substringAfter("Tags: ") + } else { + "" + } + } ?: "" url = mangaReference?.url ?: jsonObj["url"]!!.jsonPrimitive.content thumbnail_url = jsonObj["coverUrl"]?.jsonPrimitive?.content