Fix 'JsonNull' error in Tsuki. (#6427)
This commit is contained in:
parent
37a6b0d2dd
commit
c82de4147f
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue