mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Update src/controllers/movies/movies.js
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
bb78451102
commit
ce4aded654
@ -33,9 +33,12 @@ export default function (view, params, tabContent, options) {
|
|||||||
function shuffle() {
|
function shuffle() {
|
||||||
isLoading = true;
|
isLoading = true;
|
||||||
loading.show();
|
loading.show();
|
||||||
const newQuery = { ...query, SortBy: 'Random', Limit: 1 };
|
const newQuery = { ...query, SortBy: 'Random', StartIndex: 0, Limit: 300 };
|
||||||
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
|
return ApiClient.getItems(ApiClient.getCurrentUserId(), newQuery).then(({ Items }) => {
|
||||||
playbackManager.shuffle(Items[0]);
|
playbackManager.play({
|
||||||
|
items: Items,
|
||||||
|
autoplay: true
|
||||||
|
});
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user