ZinChanManga: fix null JSON field (#10521)

This commit is contained in:
ObserverOfTime 2022-01-20 14:56:41 +02:00 committed by GitHub
parent aecbe24be1
commit 616f8a2db2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'ZinChanManga'
pkgNameSuffix = 'en.zinchanmanga'
extClass = '.ZinChanManga'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -39,14 +39,15 @@ data class Series(
private val name_genre: String,
private val name_author: String,
@N("thumbnail_story") val cover: String,
private val content_story: String
private val content_story: String? = null
) {
val url by lazy {
"$slug_story?id=$id_story"
}
val description by lazy {
Jsoup.parse(content_story).text().takeIf { "Updating" !in it }
content_story?.let(Jsoup::parse)?.text()
?.takeIf { "Updating" !in it }
}
val genres by lazy {