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

Fix playing empty item set

This commit is contained in:
Dmitry Lyzo 2023-10-04 00:29:26 +03:00
parent 1250c76567
commit 5fd5292f6d

View file

@ -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) {