DMZJ: make authors field nullable (#13827)
This commit is contained in:
parent
9e54fe8a75
commit
fe016713be
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'DMZJ'
|
||||
pkgNameSuffix = 'zh.dmzj'
|
||||
extClass = '.Dmzj'
|
||||
extVersionCode = 33
|
||||
extVersionCode = 34
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -48,7 +48,7 @@ object ApiV3 {
|
|||
class MangaDto(
|
||||
private val id: JsonPrimitive, // can be int or string
|
||||
private val title: String,
|
||||
private val authors: String,
|
||||
private val authors: String?,
|
||||
private val status: String,
|
||||
private val cover: String,
|
||||
private val types: String,
|
||||
|
@ -57,7 +57,7 @@ object ApiV3 {
|
|||
fun toSManga() = SManga.create().apply {
|
||||
url = getMangaUrl(id.content)
|
||||
title = this@MangaDto.title
|
||||
author = authors.formatList()
|
||||
author = authors?.formatList()
|
||||
genre = types.formatList()
|
||||
status = parseStatus(this@MangaDto.status)
|
||||
thumbnail_url = cover
|
||||
|
|
Loading…
Reference in New Issue