Add FullNowPlayingQueue property

This commit is contained in:
Fernando Fernández 2021-05-17 13:33:37 +02:00 committed by Fernando Fernández (Rebase PR Action)
parent 07e9568de8
commit 5df6058a8e
2 changed files with 8 additions and 0 deletions

View File

@ -428,6 +428,12 @@ namespace Emby.Server.Implementations.Session
{
session.NowPlayingQueue = nowPlayingQueue;
}
var itemIds = session.NowPlayingQueue.Select(queue => queue.Id).ToArray();
session.NowPlayingQueueFullItems = _dtoService.GetBaseItemDtos(_libraryManager.GetItemList(new InternalItemsQuery {
ItemIds = itemIds,
}), new DtoOptions(true)).ToArray();
}
/// <summary>

View File

@ -221,6 +221,8 @@ namespace MediaBrowser.Controller.Session
public QueueItem[] NowPlayingQueue { get; set; }
public BaseItemDto[] NowPlayingQueueFullItems { get; set; }
public bool HasCustomDeviceName { get; set; }
public string PlaylistItemId { get; set; }