Fix anilist jsonnull issue

41c64b7058
(cherry picked from commit abf47deee3)
This commit is contained in:
arkon
2020-05-03 20:05:21 -04:00
committed by Jobobby04
parent fd88db37f7
commit f5b8d3120d

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
)
}