DMZJ: make authors field nullable (#13827)

This commit is contained in:
stevenyomi 2022-10-12 20:10:16 +08:00 committed by GitHub
parent 9e54fe8a75
commit fe016713be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'DMZJ'
pkgNameSuffix = 'zh.dmzj'
extClass = '.Dmzj'
extVersionCode = 33
extVersionCode = 34
}
apply from: "$rootDir/common.gradle"

View File

@ -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