1
0
Fork 0
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:
Bill Thornton 2023-10-04 08:04:12 -04:00 committed by GitHub
commit eb7fb6b39d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1734,6 +1734,8 @@ class PlaybackManager {
}
function translateItemsForPlayback(items, options) {
if (!items.length) return Promise.resolve([]);
if (items.length > 1 && options && options.ids) {
// Use the original request id array for sorting the result in the proper order
items.sort(function (a, b) {