mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Fix play all & shuffle not working on genres (#5949)
* Fix play all/shuffle not working on genres * re-order * add check for genre type * Update src/controllers/list.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
7949ff4f0a
commit
ef00d439b1
@ -1862,6 +1862,15 @@ class PlaybackManager {
|
||||
SortBy: options.shuffle ? 'Random' : 'SortName',
|
||||
MediaTypes: 'Audio'
|
||||
}, queryOptions));
|
||||
case 'Genre':
|
||||
return getItemsForPlayback(serverId, mergePlaybackQueries({
|
||||
GenreIds: 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);
|
||||
|
@ -851,6 +851,10 @@ class ItemsView {
|
||||
setTitle(null);
|
||||
getItem(params).then(function (item) {
|
||||
setTitle(item);
|
||||
if (item.Type == 'Genre') {
|
||||
item.ParentId = params.parentId;
|
||||
}
|
||||
|
||||
self.currentItem = item;
|
||||
const refresh = !isRestored;
|
||||
self.itemsContainer.resume({
|
||||
|
Loading…
Reference in New Issue
Block a user