mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Fix build and clean up
This commit is contained in:
parent
5df6058a8e
commit
ee46754238
@ -424,16 +424,15 @@ 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));
|
||||
}
|
||||
|
||||
var itemIds = session.NowPlayingQueue.Select(queue => queue.Id).ToArray();
|
||||
|
||||
session.NowPlayingQueueFullItems = _dtoService.GetBaseItemDtos(_libraryManager.GetItemList(new InternalItemsQuery {
|
||||
ItemIds = itemIds,
|
||||
}), new DtoOptions(true)).ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -39,6 +39,8 @@ namespace MediaBrowser.Controller.Session
|
||||
AdditionalUsers = Array.Empty<SessionUserInfo>();
|
||||
PlayState = new PlayerStateInfo();
|
||||
SessionControllers = Array.Empty<ISessionController>();
|
||||
NowPlayingQueue = Array.Empty<QueueItem>();
|
||||
NowPlayingQueueFullItems = Array.Empty<BaseItemDto>();
|
||||
}
|
||||
|
||||
public PlayerStateInfo PlayState { get; set; }
|
||||
@ -219,9 +221,9 @@ namespace MediaBrowser.Controller.Session
|
||||
}
|
||||
}
|
||||
|
||||
public QueueItem[] NowPlayingQueue { get; set; }
|
||||
public IReadOnlyList<QueueItem> NowPlayingQueue { get; set; }
|
||||
|
||||
public BaseItemDto[] NowPlayingQueueFullItems { get; set; }
|
||||
public IReadOnlyList<BaseItemDto> NowPlayingQueueFullItems { get; set; }
|
||||
|
||||
public bool HasCustomDeviceName { get; set; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user