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