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'
|
extName = 'MangaMiso'
|
||||||
pkgNameSuffix = 'en.mangamiso'
|
pkgNameSuffix = 'en.mangamiso'
|
||||||
extClass = '.MangaMiso'
|
extClass = '.MangaMiso'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ class MangaMiso : HttpSource() {
|
||||||
val mangaList = json.decodeFromString<MisoBrowseManga>(response.body!!.string())
|
val mangaList = json.decodeFromString<MisoBrowseManga>(response.body!!.string())
|
||||||
val page = response.request.url.queryParameter("page")!!.toInt()
|
val page = response.request.url.queryParameter("page")!!.toInt()
|
||||||
val totalViewedManga = page * MANGA_PER_PAGE
|
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
|
@Serializable
|
||||||
data class MisoBrowseManga(
|
data class MisoBrowseManga(
|
||||||
val foundList: List<MisoManga> = emptyList(),
|
val foundList: List<MisoManga> = emptyList(),
|
||||||
val totalResults: Int = 0
|
val total: Int = 0
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|
Loading…
Reference in New Issue