mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #4837 from dmitrylyzo/fix-noitem-play
This commit is contained in:
commit
eb7fb6b39d
1 changed files with 2 additions and 0 deletions
|
@ -1734,6 +1734,8 @@ class PlaybackManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
function translateItemsForPlayback(items, options) {
|
function translateItemsForPlayback(items, options) {
|
||||||
|
if (!items.length) return Promise.resolve([]);
|
||||||
|
|
||||||
if (items.length > 1 && options && options.ids) {
|
if (items.length > 1 && options && options.ids) {
|
||||||
// Use the original request id array for sorting the result in the proper order
|
// Use the original request id array for sorting the result in the proper order
|
||||||
items.sort(function (a, b) {
|
items.sort(function (a, b) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue