Refactor field name for MangaMiso source's number of search results returned. (#7763)

This commit is contained in:
Hunter Nickel 2021-06-20 06:38:54 -06:00 committed by GitHub
parent 8a591393ac
commit 7f9223fefd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaMiso'
pkgNameSuffix = 'en.mangamiso'
extClass = '.MangaMiso'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
containsNsfw = true
}

View File

@ -115,7 +115,7 @@ class MangaMiso : HttpSource() {
val mangaList = json.decodeFromString<MisoBrowseManga>(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)
}
}

View File

@ -18,7 +18,7 @@ data class MisoLatestUpdatesPage(
@Serializable
data class MisoBrowseManga(
val foundList: List<MisoManga> = emptyList(),
val totalResults: Int = 0
val total: Int = 0
)
@Serializable