mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix shuffle/instant mix
This commit is contained in:
parent
c925a314cf
commit
7323e865f2
2 changed files with 14 additions and 0 deletions
|
@ -585,12 +585,23 @@
|
|||
|
||||
self.shuffle = function (id) {
|
||||
|
||||
// accept both id and item being passed in
|
||||
if (id.Id) {
|
||||
id = id.Id;
|
||||
}
|
||||
|
||||
doWithPlaybackValidation(currentPlayer, function () {
|
||||
currentPlayer.shuffle(id);
|
||||
});
|
||||
};
|
||||
|
||||
self.instantMix = function (id) {
|
||||
|
||||
// accept both id and item being passed in
|
||||
if (id.Id) {
|
||||
id = id.Id;
|
||||
}
|
||||
|
||||
doWithPlaybackValidation(currentPlayer, function () {
|
||||
currentPlayer.instantMix(id);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue