fix: move Chapters,Trickplay fields to shuffle query only

This commit is contained in:
TOomaAh
2025-06-11 23:11:56 +02:00
parent 7cbd523d7a
commit 5bee81111a
+2 -2
View File
@@ -33,7 +33,7 @@ export default function (view, params, tabContent, options) {
function shuffle() {
isLoading = true;
loading.show();
const newQuery = { ...query, SortBy: 'Random', StartIndex: 0, Limit: 300 };
const newQuery = { ...query, SortBy: 'Random', StartIndex: 0, Limit: 300, Fields: 'PrimaryImageAspectRatio,MediaSourceCount,Chapters,Trickplay' };
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
playbackManager.play({
items: Items,
@@ -277,7 +277,7 @@ export default function (view, params, tabContent, options) {
SortOrder: 'Ascending',
IncludeItemTypes: 'Movie',
Recursive: true,
Fields: 'PrimaryImageAspectRatio,MediaSourceCount,Chapters,Trickplay',
Fields: 'PrimaryImageAspectRatio,MediaSourceCount',
ImageTypeLimit: 1,
EnableImageTypes: 'Primary,Backdrop,Banner,Thumb',
StartIndex: 0,