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

Update src/controllers/movies/movies.js

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
David Murdoch 2024-09-25 13:49:41 -04:00 committed by GitHub
parent f52ac7a96d
commit bb78451102
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,8 @@ export default function (view, params, tabContent, options) {
const newQuery = { ...query, SortBy: 'Random', Limit: 1 };
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
playbackManager.shuffle(Items[0]);
}).finally(() => {
isLoading = false;
});
}