mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Autoplay when Play or Shuffle
This commit is contained in:
parent
2ae0120146
commit
2bf4741d9c
3 changed files with 11 additions and 4 deletions
|
@ -666,12 +666,14 @@ class ItemsView {
|
|||
|
||||
if (currentItem && !self.hasFilters) {
|
||||
playbackManager.play({
|
||||
items: [currentItem]
|
||||
items: [currentItem],
|
||||
autoplay: true
|
||||
});
|
||||
} else {
|
||||
getItems(self, self.params, currentItem, null, null, 300).then(function (result) {
|
||||
playbackManager.play({
|
||||
items: result.Items
|
||||
items: result.Items,
|
||||
autoplay: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -701,7 +703,8 @@ class ItemsView {
|
|||
} else {
|
||||
getItems(self, self.params, currentItem, 'Random', null, 300).then(function (result) {
|
||||
playbackManager.play({
|
||||
items: result.Items
|
||||
items: result.Items,
|
||||
autoplay: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue