mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 04:34:18 +01:00
Remove the unused NowPlayingQueueFullItems session property from session DTOs and associated references
This commit is contained in:
@@ -114,6 +114,7 @@
|
|||||||
- [oddstr13](https://github.com/oddstr13)
|
- [oddstr13](https://github.com/oddstr13)
|
||||||
- [olsh](https://github.com/olsh)
|
- [olsh](https://github.com/olsh)
|
||||||
- [orryverducci](https://github.com/orryverducci)
|
- [orryverducci](https://github.com/orryverducci)
|
||||||
|
- [PCEWLKR](https://github.com/PCEWLKR)
|
||||||
- [petermcneil](https://github.com/petermcneil)
|
- [petermcneil](https://github.com/petermcneil)
|
||||||
- [Phlogi](https://github.com/Phlogi)
|
- [Phlogi](https://github.com/Phlogi)
|
||||||
- [pjeanjean](https://github.com/pjeanjean)
|
- [pjeanjean](https://github.com/pjeanjean)
|
||||||
|
|||||||
@@ -453,18 +453,6 @@ namespace Emby.Server.Implementations.Session
|
|||||||
session.PlayState.RepeatMode = info.RepeatMode;
|
session.PlayState.RepeatMode = info.RepeatMode;
|
||||||
session.PlayState.PlaybackOrder = info.PlaybackOrder;
|
session.PlayState.PlaybackOrder = info.PlaybackOrder;
|
||||||
session.PlaylistItemId = info.PlaylistItemId;
|
session.PlaylistItemId = info.PlaylistItemId;
|
||||||
|
|
||||||
var nowPlayingQueue = info.NowPlayingQueue;
|
|
||||||
|
|
||||||
if (nowPlayingQueue?.Length > 0 && !nowPlayingQueue.SequenceEqual(session.NowPlayingQueue))
|
|
||||||
{
|
|
||||||
session.NowPlayingQueue = nowPlayingQueue;
|
|
||||||
|
|
||||||
var itemIds = Array.ConvertAll(nowPlayingQueue, queue => queue.Id);
|
|
||||||
session.NowPlayingQueueFullItems = _dtoService.GetBaseItemDtos(
|
|
||||||
_libraryManager.GetItemList(new InternalItemsQuery { ItemIds = itemIds }),
|
|
||||||
new DtoOptions(true));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1217,7 +1205,6 @@ namespace Emby.Server.Implementations.Session
|
|||||||
SupportsMediaControl = sessionInfo.SupportsMediaControl,
|
SupportsMediaControl = sessionInfo.SupportsMediaControl,
|
||||||
SupportsRemoteControl = sessionInfo.SupportsRemoteControl,
|
SupportsRemoteControl = sessionInfo.SupportsRemoteControl,
|
||||||
NowPlayingQueue = sessionInfo.NowPlayingQueue,
|
NowPlayingQueue = sessionInfo.NowPlayingQueue,
|
||||||
NowPlayingQueueFullItems = sessionInfo.NowPlayingQueueFullItems,
|
|
||||||
HasCustomDeviceName = sessionInfo.HasCustomDeviceName,
|
HasCustomDeviceName = sessionInfo.HasCustomDeviceName,
|
||||||
PlaylistItemId = sessionInfo.PlaylistItemId,
|
PlaylistItemId = sessionInfo.PlaylistItemId,
|
||||||
ServerId = sessionInfo.ServerId,
|
ServerId = sessionInfo.ServerId,
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ namespace MediaBrowser.Controller.Session
|
|||||||
PlayState = new PlayerStateInfo();
|
PlayState = new PlayerStateInfo();
|
||||||
SessionControllers = [];
|
SessionControllers = [];
|
||||||
NowPlayingQueue = [];
|
NowPlayingQueue = [];
|
||||||
NowPlayingQueueFullItems = [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -271,16 +270,10 @@ namespace MediaBrowser.Controller.Session
|
|||||||
/// <value>The now playing queue.</value>
|
/// <value>The now playing queue.</value>
|
||||||
public IReadOnlyList<QueueItem> NowPlayingQueue { get; set; }
|
public IReadOnlyList<QueueItem> NowPlayingQueue { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the now playing queue full items.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The now playing queue full items.</value>
|
|
||||||
public IReadOnlyList<BaseItemDto> NowPlayingQueueFullItems { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether the session has a custom device name.
|
/// Gets or sets a value indicating whether the session has a custom device name.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>true</c> if this session has a custom device name; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if the session has a custom device name; otherwise, <c>false</c>.</value>
|
||||||
public bool HasCustomDeviceName { get; set; }
|
public bool HasCustomDeviceName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -149,13 +149,7 @@ public class SessionInfoDto
|
|||||||
public IReadOnlyList<QueueItem>? NowPlayingQueue { get; set; }
|
public IReadOnlyList<QueueItem>? NowPlayingQueue { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the now playing queue full items.
|
/// Gets or sets a value indicating whether this session has a custom device name.
|
||||||
/// </summary>
|
|
||||||
/// <value>The now playing queue full items.</value>
|
|
||||||
public IReadOnlyList<BaseItemDto>? NowPlayingQueueFullItems { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets a value indicating whether the session has a custom device name.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>true</c> if this session has a custom device name; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if this session has a custom device name; otherwise, <c>false</c>.</value>
|
||||||
public bool HasCustomDeviceName { get; set; }
|
public bool HasCustomDeviceName { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user