Skip to content

Commit

Permalink
Made the series play button play the next episode
Browse files Browse the repository at this point in the history
  • Loading branch information
beef331 committed Oct 3, 2023
1 parent 3c443e2 commit daf6d7d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,15 @@ class PlaybackManager {
SortBy: options.shuffle ? 'Random' : 'SortName',
MediaTypes: 'Audio'
});
} else if (firstItem.Type === 'Series') {
const apiClient = ServerConnections.getApiClient(firstItem.ServerId);
promise = getItemsForPlayback(serverId, {
ParentId: firstItem.Id,
UserId: apiClient.getCurrentUserId(),
Filters: 'IsNotFolder,IsUnplayed',
Recursive: true,
MediaTypes: 'Video'
});
} else if (firstItem.IsFolder && firstItem.CollectionType === 'homevideos') {
promise = getItemsForPlayback(serverId, mergePlaybackQueries({
ParentId: firstItem.Id,
Expand Down

0 comments on commit daf6d7d

Please sign in to comment.