From 88cf03977859d2b50e6f47ec89d0febfe3779b11 Mon Sep 17 00:00:00 2001 From: Carlos Date: Sun, 15 Dec 2019 12:23:51 -0500 Subject: [PATCH] fix follows parsing --- .../kanade/tachiyomi/source/online/handlers/FollowsHandler.kt | 2 +- .../source/online/handlers/serializers/FollowsPageSerializer.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/FollowsHandler.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/FollowsHandler.kt index d6da5455d1..4924c7dee1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/FollowsHandler.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/FollowsHandler.kt @@ -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) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/serializers/FollowsPageSerializer.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/serializers/FollowsPageSerializer.kt index 0d6535c57c..5ae9fe6216 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/serializers/FollowsPageSerializer.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/handlers/serializers/FollowsPageSerializer.kt @@ -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,