mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #5949 from jellyfin-web/release-10.9.z
Fix play all & shuffle not working on genres
Original-merge: ef00d439b1
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
d0a749b76c
commit
cf9af1f392
2 changed files with 13 additions and 0 deletions
|
@ -1862,6 +1862,15 @@ class PlaybackManager {
|
||||||
SortBy: options.shuffle ? 'Random' : 'SortName',
|
SortBy: options.shuffle ? 'Random' : 'SortName',
|
||||||
MediaTypes: 'Audio'
|
MediaTypes: 'Audio'
|
||||||
}, queryOptions));
|
}, 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 'Series':
|
||||||
case 'Season':
|
case 'Season':
|
||||||
return getSeriesOrSeasonPlaybackPromise(firstItem, options, items);
|
return getSeriesOrSeasonPlaybackPromise(firstItem, options, items);
|
||||||
|
|
|
@ -851,6 +851,10 @@ class ItemsView {
|
||||||
setTitle(null);
|
setTitle(null);
|
||||||
getItem(params).then(function (item) {
|
getItem(params).then(function (item) {
|
||||||
setTitle(item);
|
setTitle(item);
|
||||||
|
if (item.Type == 'Genre') {
|
||||||
|
item.ParentId = params.parentId;
|
||||||
|
}
|
||||||
|
|
||||||
self.currentItem = item;
|
self.currentItem = item;
|
||||||
const refresh = !isRestored;
|
const refresh = !isRestored;
|
||||||
self.itemsContainer.resume({
|
self.itemsContainer.resume({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue