From 95ec9038624c2a89d7bfe7a07c6db2653598075c Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 29 Oct 2020 17:51:18 -0400 Subject: [PATCH] Fix Bangumi API response deserialization (fixes #3977) --- .../java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt index a9d7b3ee39..8ef3f28333 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiApi.kt @@ -151,7 +151,7 @@ class BangumiApi(private val client: OkHttpClient, interceptor: BangumiIntercept .asObservableSuccess() .map { netResponse -> val resp = netResponse.body?.string() - val coll = Json.decodeFromString(resp!!) + val coll = Json { ignoreUnknownKeys = true }.decodeFromString(resp!!) track.status = coll.status?.id!! track.last_chapter_read = coll.ep_status!! track