1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix movies Shuffle button

This commit is contained in:
David Murdoch 2023-05-24 15:50:09 -04:00
parent ec75d31a64
commit 74c735dbd0

View file

@ -31,11 +31,11 @@ export default function (view, params, tabContent, options) {
}
function shuffle() {
ApiClient.getItem(
ApiClient.getCurrentUserId(),
params.topParentId
).then((item) => {
playbackManager.shuffle(item);
isLoading = true;
loading.show();
const newQuery = { ...query, SortBy: 'Random' };
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
playbackManager.shuffle(Items[0]);
});
}