Fix play all & shuffle not working on Person

This commit is contained in:
Aubrey Benedetti
2025-05-15 01:38:59 -04:00
committed by Bill Thornton
parent b39360bf61
commit 4b36146b34
@@ -1882,6 +1882,15 @@ export class PlaybackManager {
SortBy: options.shuffle ? 'Random' : 'SortName',
MediaTypes: 'Video'
}, queryOptions));
case 'Person':
return getItemsForPlayback(serverId, mergePlaybackQueries({
PersonIds: firstItem.Id,
ParentId: firstItem.ParentId,
Filters: 'IsNotFolder',
Recursive: true,
SortBy: options.shuffle ? 'Random' : 'SortName',
MediaTypes: 'Video'
}, queryOptions));
case 'Series':
case 'Season':
return getSeriesOrSeasonPlaybackPromise(firstItem, options, items);