mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 17:49:17 +01:00
Fix Bangumi API response deserialization (fixes #3977)
This commit is contained in:
parent
2ab6af6471
commit
95ec903862
@ -151,7 +151,7 @@ class BangumiApi(private val client: OkHttpClient, interceptor: BangumiIntercept
|
|||||||
.asObservableSuccess()
|
.asObservableSuccess()
|
||||||
.map { netResponse ->
|
.map { netResponse ->
|
||||||
val resp = netResponse.body?.string()
|
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.status = coll.status?.id!!
|
||||||
track.last_chapter_read = coll.ep_status!!
|
track.last_chapter_read = coll.ep_status!!
|
||||||
track
|
track
|
||||||
|
Loading…
Reference in New Issue
Block a user