From 7f9223fefda1c3762f0c10dc6abf02fc185f17c1 Mon Sep 17 00:00:00 2001 From: Hunter Nickel Date: Sun, 20 Jun 2021 06:38:54 -0600 Subject: [PATCH] Refactor field name for MangaMiso source's number of search results returned. (#7763) --- src/en/mangamiso/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt | 2 +- .../kanade/tachiyomi/extension/en/mangamiso/MangaMisoObjects.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/mangamiso/build.gradle b/src/en/mangamiso/build.gradle index 553f8adad..f2c4417fe 100644 --- a/src/en/mangamiso/build.gradle +++ b/src/en/mangamiso/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MangaMiso' pkgNameSuffix = 'en.mangamiso' extClass = '.MangaMiso' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' containsNsfw = true } diff --git a/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt b/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt index 671880b2b..4c5f9aae6 100644 --- a/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt +++ b/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMiso.kt @@ -115,7 +115,7 @@ class MangaMiso : HttpSource() { val mangaList = json.decodeFromString(response.body!!.string()) val page = response.request.url.queryParameter("page")!!.toInt() val totalViewedManga = page * MANGA_PER_PAGE - MangasPage(mangaList.foundList.map(::toSManga), mangaList.totalResults > totalViewedManga) + MangasPage(mangaList.foundList.map(::toSManga), mangaList.total > totalViewedManga) } } diff --git a/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMisoObjects.kt b/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMisoObjects.kt index 14c52a0a9..48238c548 100644 --- a/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMisoObjects.kt +++ b/src/en/mangamiso/src/eu/kanade/tachiyomi/extension/en/mangamiso/MangaMisoObjects.kt @@ -18,7 +18,7 @@ data class MisoLatestUpdatesPage( @Serializable data class MisoBrowseManga( val foundList: List = emptyList(), - val totalResults: Int = 0 + val total: Int = 0 ) @Serializable