ZinChanManga: fix null JSON field (#10521)
This commit is contained in:
parent
aecbe24be1
commit
616f8a2db2
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'ZinChanManga'
|
||||
pkgNameSuffix = 'en.zinchanmanga'
|
||||
extClass = '.ZinChanManga'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue