Parse tags after "Tags: " string (#11198)
This commit is contained in:
parent
a8050758d2
commit
1ca834b9de
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Cubari'
|
||||
pkgNameSuffix = "all.cubari"
|
||||
extClass = '.CubariFactory'
|
||||
extVersionCode = 11
|
||||
extVersionCode = 12
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -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 ?: ""
|
||||
|
|
Loading…
Reference in New Issue