Skip to content

Commit

Permalink
fix follows parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Dec 15, 2019
1 parent 78bcf81 commit 88cf039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FollowsHandler(val client: OkHttpClient, val headers: Headers) {
}

private fun followsParse(response: Response): MangasPage {
val followsPageResult = Json.parse(FollowsPageResult.serializer(), response.body!!.string())
val followsPageResult = Json.nonstrict.parse(FollowsPageResult.serializer(), response.body!!.string())

if (followsPageResult.result.isEmpty()) {
return MangasPage(mutableListOf(), false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ data class FollowsPageResult(

@Serializable
data class Result(
val title: String,
val chapter: String,
val follow_type: Int,
val manga_id: Int,
Expand Down

0 comments on commit 88cf039

Please sign in to comment.