From 1ca834b9deef4111414dcadde6babfd84409417d Mon Sep 17 00:00:00 2001 From: BrutuZ Date: Tue, 22 Mar 2022 09:49:35 -0300 Subject: [PATCH] Parse tags after "Tags: " string (#11198) --- src/all/cubari/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/cubari/Cubari.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/all/cubari/build.gradle b/src/all/cubari/build.gradle index b72e59b64..853063ac3 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 = 11 + extVersionCode = 12 } 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 c93880e59..46a611cdc 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 @@ -349,7 +349,8 @@ open class Cubari(override val lang: String) : HttpSource() { title = jsonObj["title"]!!.jsonPrimitive.content artist = jsonObj["artist"]?.jsonPrimitive?.content ?: ARTIST_FALLBACK author = jsonObj["author"]?.jsonPrimitive?.content ?: AUTHOR_FALLBACK - description = jsonObj["description"]?.jsonPrimitive?.content ?: DESCRIPTION_FALLBACK + description = jsonObj["description"]?.jsonPrimitive?.content?.substringBefore("Tags: ") ?: DESCRIPTION_FALLBACK + genre = jsonObj["description"]?.jsonPrimitive?.content?.substringAfter("Tags: ") url = mangaReference?.url ?: jsonObj["url"]!!.jsonPrimitive.content thumbnail_url = jsonObj["coverUrl"]?.jsonPrimitive?.content ?: jsonObj["cover"]?.jsonPrimitive?.content ?: ""