Add FullNowPlayingQueue property
This commit is contained in:
parent
07e9568de8
commit
5df6058a8e
|
@ -428,6 +428,12 @@ namespace Emby.Server.Implementations.Session
|
||||||
{
|
{
|
||||||
session.NowPlayingQueue = nowPlayingQueue;
|
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>
|
/// <summary>
|
||||||
|
|
|
@ -221,6 +221,8 @@ namespace MediaBrowser.Controller.Session
|
||||||
|
|
||||||
public QueueItem[] NowPlayingQueue { get; set; }
|
public QueueItem[] NowPlayingQueue { get; set; }
|
||||||
|
|
||||||
|
public BaseItemDto[] NowPlayingQueueFullItems { get; set; }
|
||||||
|
|
||||||
public bool HasCustomDeviceName { get; set; }
|
public bool HasCustomDeviceName { get; set; }
|
||||||
|
|
||||||
public string PlaylistItemId { get; set; }
|
public string PlaylistItemId { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user