refactor: increase home screen item limits
Resume: 6 -> 12 NextUp: 9 -> 24 Latest: 12 -> 16
This commit is contained in:
parent
add33658ee
commit
f49430d1f0
1 changed files with 3 additions and 3 deletions
|
@ -213,7 +213,7 @@ class JellyfinRepositoryImpl(
|
||||||
val items = withContext(Dispatchers.IO) {
|
val items = withContext(Dispatchers.IO) {
|
||||||
jellyfinApi.itemsApi.getResumeItems(
|
jellyfinApi.itemsApi.getResumeItems(
|
||||||
jellyfinApi.userId!!,
|
jellyfinApi.userId!!,
|
||||||
limit = 6,
|
limit = 12,
|
||||||
includeItemTypes = listOf(BaseItemKind.MOVIE, BaseItemKind.EPISODE),
|
includeItemTypes = listOf(BaseItemKind.MOVIE, BaseItemKind.EPISODE),
|
||||||
).content.items.orEmpty()
|
).content.items.orEmpty()
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ class JellyfinRepositoryImpl(
|
||||||
jellyfinApi.userLibraryApi.getLatestMedia(
|
jellyfinApi.userLibraryApi.getLatestMedia(
|
||||||
jellyfinApi.userId!!,
|
jellyfinApi.userId!!,
|
||||||
parentId = parentId,
|
parentId = parentId,
|
||||||
limit = 12,
|
limit = 16,
|
||||||
).content
|
).content
|
||||||
}
|
}
|
||||||
return items.mapNotNull {
|
return items.mapNotNull {
|
||||||
|
@ -250,7 +250,7 @@ class JellyfinRepositoryImpl(
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
jellyfinApi.showsApi.getNextUp(
|
jellyfinApi.showsApi.getNextUp(
|
||||||
jellyfinApi.userId!!,
|
jellyfinApi.userId!!,
|
||||||
limit = 9,
|
limit = 24,
|
||||||
seriesId = seriesId?.toString(),
|
seriesId = seriesId?.toString(),
|
||||||
).content.items
|
).content.items
|
||||||
.orEmpty()
|
.orEmpty()
|
||||||
|
|
Loading…
Reference in a new issue