fix(Session): don't query DB if queue hasn't changed (#14244)

This commit is contained in:
Sid K 2025-06-10 01:33:28 +02:00 committed by GitHub
parent d4c3d24e52
commit 1e8bf1ce8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View File

@ -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;

View File

@ -3,12 +3,11 @@
using System;
namespace MediaBrowser.Model.Session
{
public class QueueItem
namespace MediaBrowser.Model.Session;
public record QueueItem
{
public Guid Id { get; set; }
public string PlaylistItemId { get; set; }
}
}