Backport pull request #4837 from jellyfin/release-10.8.z

Fix playing empty item set

Original-merge: eb7fb6b39d

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Dmitry Lyzo 2023-11-08 16:30:15 -05:00 committed by Bill Thornton
parent 7df0ffcdfc
commit ff48bd6229

View File

@ -1775,6 +1775,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) {