From cb931e00627559e4e9d14d2cc7d4ec8e00eb7061 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:51:22 +0300 Subject: Add profile condition to limit the number of streams (#13583) --- MediaBrowser.Model/Session/TranscodeReason.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'MediaBrowser.Model/Session') diff --git a/MediaBrowser.Model/Session/TranscodeReason.cs b/MediaBrowser.Model/Session/TranscodeReason.cs index 39c5ac8fa4..902bab9a6e 100644 --- a/MediaBrowser.Model/Session/TranscodeReason.cs +++ b/MediaBrowser.Model/Session/TranscodeReason.cs @@ -14,6 +14,7 @@ namespace MediaBrowser.Model.Session SubtitleCodecNotSupported = 1 << 3, AudioIsExternal = 1 << 4, SecondaryAudioNotSupported = 1 << 5, + StreamCountExceedsLimit = 1 << 26, // Video Constraints VideoProfileNotSupported = 1 << 6, -- cgit v1.2.3 From 1e8bf1ce8d33e052606214b1db3cb90ab824e08c Mon Sep 17 00:00:00 2001 From: Sid K <58383260+Skaytacium@users.noreply.github.com> Date: Tue, 10 Jun 2025 01:33:28 +0200 Subject: fix(Session): don't query DB if queue hasn't changed (#14244) --- Emby.Server.Implementations/Session/SessionManager.cs | 2 +- MediaBrowser.Model/Session/QueueItem.cs | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Model/Session') diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs index 8cbd957a81..ad91cd6424 100644 --- a/Emby.Server.Implementations/Session/SessionManager.cs +++ b/Emby.Server.Implementations/Session/SessionManager.cs @@ -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; diff --git a/MediaBrowser.Model/Session/QueueItem.cs b/MediaBrowser.Model/Session/QueueItem.cs index 32b19101b2..43920a8464 100644 --- a/MediaBrowser.Model/Session/QueueItem.cs +++ b/MediaBrowser.Model/Session/QueueItem.cs @@ -3,12 +3,11 @@ using System; -namespace MediaBrowser.Model.Session +namespace MediaBrowser.Model.Session; + +public record QueueItem { - public class QueueItem - { - public Guid Id { get; set; } + public Guid Id { get; set; } - public string PlaylistItemId { get; set; } - } + public string PlaylistItemId { get; set; } } -- cgit v1.2.3