Browse Source

Fix Bangumi API response deserialization (fixes #3977)

arkon 4 năm trước cách đây
mục cha
commit
95ec903862

+ 1 - 1
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<Collection>(resp!!)
+                val coll = Json { ignoreUnknownKeys = true }.decodeFromString<Collection>(resp!!)
                 track.status = coll.status?.id!!
                 track.last_chapter_read = coll.ep_status!!
                 track