Skip to content

Commit

Permalink
Backport pull request #4837 from jellyfin/release-10.8.z
Browse files Browse the repository at this point in the history
Fix playing empty item set

Original-merge: eb7fb6b

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

Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
  • Loading branch information
dmitrylyzo authored and thornbill committed Nov 8, 2023
1 parent 7df0ffc commit ff48bd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ff48bd6

Please sign in to comment.