Refactor field name for MangaMiso source's number of search results returned. (#7763)
This commit is contained in:
parent
8a591393ac
commit
7f9223fefd
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaMiso'
|
||||
pkgNameSuffix = 'en.mangamiso'
|
||||
extClass = '.MangaMiso'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
containsNsfw = true
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue