mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 02:18:16 -07:00
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:
parent
7df0ffcdfc
commit
ff48bd6229
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user