Fix 'JsonNull' error in Tsuki. (#6427)

This commit is contained in:
Alessandro Jean 2021-04-05 00:34:27 -03:00 committed by GitHub
parent 37a6b0d2dd
commit c82de4147f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Tsuki Mangás' extName = 'Tsuki Mangás'
pkgNameSuffix = 'pt.tsukimangas' pkgNameSuffix = 'pt.tsukimangas'
extClass = '.TsukiMangas' extClass = '.TsukiMangas'
extVersionCode = 11 extVersionCode = 12
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -173,10 +173,10 @@ class TsukiMangas : HttpSource() {
return SManga.create().apply { return SManga.create().apply {
title = result["title"].string title = result["title"].string
thumbnail_url = baseUrl + "/imgs/" + result["poster"].string.substringBefore("?") thumbnail_url = baseUrl + "/imgs/" + result["poster"].string.substringBefore("?")
description = result["synopsis"].string description = result["synopsis"].nullString.orEmpty()
status = result["status"].string.toStatus() status = result["status"].nullString.orEmpty().toStatus()
author = result["author"].string author = result["author"].nullString.orEmpty()
artist = result["artist"].string artist = result["artist"].nullString.orEmpty()
genre = result["genres"].array.joinToString { it.obj["genre"].string } genre = result["genres"].array.joinToString { it.obj["genre"].string }
} }
} }