浏览代码

Fix anilist jsonnull issue

https://github.com/Jays2Kings/tachiyomiJ2K/commit/41c64b7058c4b8cc040d69160002caeceb922baa
arkon 4 年之前
父节点
当前提交
abf47deee3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistApi.kt

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/track/anilist/AnilistApi.kt

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