mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-07-26 22:42:17 +00:00
fix: update pagination logic to handle cases with zero items
This commit is contained in:
parent
f01427fea3
commit
d998c2d7b4
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ suspend fun fetchCatalogPage(
|
|||
payload = payload,
|
||||
maxItems = maxItems,
|
||||
)
|
||||
val nextSkip = if (parsed.rawItemCount >= CATALOG_PAGE_SIZE) {
|
||||
val nextSkip = if (parsed.rawItemCount > 0) {
|
||||
(skip ?: 0) + CATALOG_PAGE_SIZE
|
||||
} else {
|
||||
null
|
||||
|
|
|
|||
Loading…
Reference in a new issue