mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -1775,6 +1775,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