mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
chore: Circumvent long loading times jellyfin 10.11.2
This commit is contained in:
parent
0eaa4c1d1b
commit
58438afe88
2 changed files with 7 additions and 3 deletions
|
|
@ -26,6 +26,8 @@ class DashboardNotifier extends StateNotifier<HomeModel> {
|
|||
final viewTypes =
|
||||
ref.read(viewsProvider.select((value) => value.dashboardViews)).map((e) => e.collectionType).toSet().toList();
|
||||
|
||||
final limit = 16;
|
||||
|
||||
final imagesToFetch = {
|
||||
ImageType.logo,
|
||||
ImageType.primary,
|
||||
|
|
@ -50,6 +52,7 @@ class DashboardNotifier extends StateNotifier<HomeModel> {
|
|||
fields: fieldsToFetch,
|
||||
mediaTypes: [MediaType.video],
|
||||
enableTotalRecordCount: false,
|
||||
limit: limit,
|
||||
);
|
||||
|
||||
state = state.copyWith(
|
||||
|
|
@ -63,6 +66,7 @@ class DashboardNotifier extends StateNotifier<HomeModel> {
|
|||
fields: fieldsToFetch,
|
||||
mediaTypes: [MediaType.audio],
|
||||
enableTotalRecordCount: false,
|
||||
limit: limit,
|
||||
);
|
||||
|
||||
state = state.copyWith(
|
||||
|
|
@ -76,6 +80,7 @@ class DashboardNotifier extends StateNotifier<HomeModel> {
|
|||
fields: fieldsToFetch,
|
||||
mediaTypes: [MediaType.book],
|
||||
enableTotalRecordCount: false,
|
||||
limit: limit,
|
||||
);
|
||||
|
||||
state = state.copyWith(
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ class LibraryScreen extends _$LibraryScreen {
|
|||
final latest = await api.usersUserIdItemsLatestGet(
|
||||
parentId: viewModel.id,
|
||||
limit: 14,
|
||||
isPlayed: false,
|
||||
imageTypeLimit: 1,
|
||||
includeItemTypes: viewModel.collectionType.itemKinds.map((e) => e.dtoKind).toList(),
|
||||
);
|
||||
|
|
@ -181,6 +180,7 @@ class LibraryScreen extends _$LibraryScreen {
|
|||
parentId: viewModel.id,
|
||||
isFavorite: true,
|
||||
recursive: true,
|
||||
limit: 14,
|
||||
includeItemTypes: viewModel.collectionType.itemKinds.map((e) => e.dtoKind).toList(),
|
||||
enableImageTypes: [ImageType.primary],
|
||||
fields: [
|
||||
|
|
@ -215,8 +215,7 @@ class LibraryScreen extends _$LibraryScreen {
|
|||
final response = await api.itemsGet(
|
||||
parentId: viewModel.id,
|
||||
genreIds: [genre.id],
|
||||
limit: 9,
|
||||
recursive: true,
|
||||
limit: 14,
|
||||
includeItemTypes: viewModel.collectionType.itemKinds.map((e) => e.dtoKind).toList(),
|
||||
enableImageTypes: [ImageType.primary],
|
||||
fields: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue