Fix anilist jsonnull issue

41c64b7058
This commit is contained in:
arkon 2020-05-03 20:05:21 -04:00
parent ce0090f0ca
commit abf47deee3

View file

@ -271,7 +271,7 @@ class AnilistApi(val client: OkHttpClient, interceptor: AnilistInterceptor) {
return ALManga(
struct["id"].asInt, struct["title"]["romaji"].asString, struct["coverImage"]["large"].asString,
struct["description"].nullString.orEmpty(), struct["type"].asString, struct["status"].asString,
struct["description"].nullString.orEmpty(), struct["type"].asString, struct["status"].nullString.orEmpty(),
date, struct["chapters"].nullInt ?: 0
)
}