aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Session/SessionManager.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2022-02-28 23:54:50 -0500
committerGitHub <noreply@github.com>2022-02-28 23:54:50 -0500
commit7c9aa63382d3d0e4a3e3285732f469026b98aa07 (patch)
tree5bf08a40313e7a5c926cf3c37a20e24349f09674 /Emby.Server.Implementations/Session/SessionManager.cs
parentfe99800bde4b17aa634a9c7955590f17bd611263 (diff)
parentee46754238a38e84ef9e96795ee454cec33eed5a (diff)
Merge pull request #6058 from ferferga/deprecate-queueitem
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionManager.cs')
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index 6c679ea20..ab860ef67 100644
--- a/Emby.Server.Implementations/Session/SessionManager.cs
+++ b/Emby.Server.Implementations/Session/SessionManager.cs
@@ -424,9 +424,14 @@ namespace Emby.Server.Implementations.Session
var nowPlayingQueue = info.NowPlayingQueue;
- if (nowPlayingQueue != null)
+ if (nowPlayingQueue?.Length > 0)
{
session.NowPlayingQueue = nowPlayingQueue;
+
+ var itemIds = nowPlayingQueue.Select(queue => queue.Id).ToArray();
+ session.NowPlayingQueueFullItems = _dtoService.GetBaseItemDtos(
+ _libraryManager.GetItemList(new InternalItemsQuery { ItemIds = itemIds }),
+ new DtoOptions(true));
}
}