refactor: increase home screen item limits

Resume: 6 -> 12
NextUp: 9 -> 24
Latest: 12 -> 16
This commit is contained in:
Jarne Demeulemeester 2024-02-24 22:56:54 +01:00
parent add33658ee
commit f49430d1f0
No known key found for this signature in database
GPG key ID: 1E5C6AFBD622E9F5

View file

@ -213,7 +213,7 @@ class JellyfinRepositoryImpl(
val items = withContext(Dispatchers.IO) {
jellyfinApi.itemsApi.getResumeItems(
jellyfinApi.userId!!,
limit = 6,
limit = 12,
includeItemTypes = listOf(BaseItemKind.MOVIE, BaseItemKind.EPISODE),
).content.items.orEmpty()
}
@ -227,7 +227,7 @@ class JellyfinRepositoryImpl(
jellyfinApi.userLibraryApi.getLatestMedia(
jellyfinApi.userId!!,
parentId = parentId,
limit = 12,
limit = 16,
).content
}
return items.mapNotNull {
@ -250,7 +250,7 @@ class JellyfinRepositoryImpl(
withContext(Dispatchers.IO) {
jellyfinApi.showsApi.getNextUp(
jellyfinApi.userId!!,
limit = 9,
limit = 24,
seriesId = seriesId?.toString(),
).content.items
.orEmpty()