Skip to content

Commit

Permalink
Fix trickplay/chapter when play from list/shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
alaincao committed Nov 26, 2024
1 parent 30117bc commit ff13c2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
if (params.type === 'nextup') {
return apiClient.getNextUpEpisodes(modifyQueryWithFilters(instance, {
Limit: limit,
Fields: 'PrimaryImageAspectRatio,DateCreated,MediaSourceCount',
Fields: 'PrimaryImageAspectRatio,DateCreated,MediaSourceCount,Chapters,Trickplay',
UserId: apiClient.getCurrentUserId(),
ImageTypeLimit: 1,
EnableImageTypes: 'Primary,Backdrop,Thumb',
Expand All @@ -278,7 +278,7 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
return apiClient[method](apiClient.getCurrentUserId(), modifyQueryWithFilters(instance, {
StartIndex: startIndex,
Limit: limit,
Fields: 'PrimaryImageAspectRatio,SortName',
Fields: 'PrimaryImageAspectRatio,SortName,Chapters,Trickplay',
ImageTypeLimit: 1,
IncludeItemTypes: params.type === 'MusicArtist' || params.type === 'Person' ? null : params.type,
Recursive: true,
Expand Down
1 change: 1 addition & 0 deletions src/controllers/movies/movies.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function (view, params, tabContent, options) {
isLoading = true;
loading.show();
const newQuery = { ...query, SortBy: 'Random', StartIndex: 0, Limit: 300 };
newQuery.Fields = [...new Set(query.Fields.split(',').concat(['Chapters', 'Trickplay']))].join(',');
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
playbackManager.play({
items: Items,
Expand Down

0 comments on commit ff13c2c

Please sign in to comment.