mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
GravureBlogger: fix incomplete results due to incorrect totalResults field (#1657)
This commit is contained in:
parent
d4244eec23
commit
b498b0dad6
@ -2,4 +2,4 @@ plugins {
|
||||
id("lib-multisrc")
|
||||
}
|
||||
|
||||
baseVersionCode = 2
|
||||
baseVersionCode = 3
|
||||
|
@ -10,9 +10,6 @@ class BloggerDto(
|
||||
|
||||
@Serializable
|
||||
class BloggerFeedDto(
|
||||
@SerialName("openSearch\$totalResults") val totalResults: BloggerTextDto,
|
||||
@SerialName("openSearch\$startIndex") val startIndex: BloggerTextDto,
|
||||
@SerialName("openSearch\$itemsPerPage") val itemsPerPage: BloggerTextDto,
|
||||
val category: List<BloggerCategoryDto> = emptyList(),
|
||||
val entry: List<BloggerFeedEntryDto> = emptyList(),
|
||||
)
|
||||
|
@ -65,7 +65,7 @@ abstract class GravureBlogger(
|
||||
initialized = true
|
||||
}
|
||||
}
|
||||
val hasNextPage = (data.feed.startIndex.t.toInt() + data.feed.itemsPerPage.t.toInt()) <= data.feed.totalResults.t.toInt()
|
||||
val hasNextPage = data.feed.entry.size == MAX_RESULTS
|
||||
|
||||
return MangasPage(manga, hasNextPage)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user