aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorLaurence Laforest <l.laforest@gmail.com>2026-10-07 12:25:43 -0400
committerLaurence Laforest <l.laforest@gmail.com>2026-10-13 18:10:03 -0400
commit23ca550053adc564e2c082eeb2f7a36439d6e814 (patch)
treec826aa18b0f15b77775d4b16d8c727783ab66437 /Emby.Server.Implementations
parente53a6d3e6ae29cb05c55c7b8edf2d237a1f75c16 (diff)
Add active stream count to live tv channels
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/Library/MediaSourceManager.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Library/MediaSourceManager.cs b/Emby.Server.Implementations/Library/MediaSourceManager.cs
index e9bba05839..a8cd247273 100644
--- a/Emby.Server.Implementations/Library/MediaSourceManager.cs
+++ b/Emby.Server.Implementations/Library/MediaSourceManager.cs
@@ -972,6 +972,14 @@ namespace Emby.Server.Implementations.Library
return _openStreams.Values.FirstOrDefault(stream => string.Equals(uniqueId, stream?.UniqueId, StringComparison.OrdinalIgnoreCase));
}
+ /// <inheritdoc />
+ public IReadOnlyList<ILiveStream> GetLiveStreams(Guid channelId)
+ {
+ return _openStreams.Values
+ .Where(stream => stream.ChannelId.Equals(channelId))
+ .ToList();
+ }
+
public async Task<MediaSourceInfo> GetLiveStream(string id, CancellationToken cancellationToken)
{
var result = await GetLiveStreamWithDirectStreamProvider(id, cancellationToken).ConfigureAwait(false);