mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-15 16:03:28 +01:00
fix(Session): don't query DB if queue hasn't changed (#14244)
This commit is contained in:
parent
d4c3d24e52
commit
1e8bf1ce8d
2 changed files with 7 additions and 8 deletions
|
|
@ -456,7 +456,7 @@ namespace Emby.Server.Implementations.Session
|
|||
|
||||
var nowPlayingQueue = info.NowPlayingQueue;
|
||||
|
||||
if (nowPlayingQueue?.Length > 0)
|
||||
if (nowPlayingQueue?.Length > 0 && !nowPlayingQueue.SequenceEqual(session.NowPlayingQueue))
|
||||
{
|
||||
session.NowPlayingQueue = nowPlayingQueue;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,11 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class QueueItem
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
namespace MediaBrowser.Model.Session;
|
||||
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
public record QueueItem
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue