mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
improve display of active recordings
This commit is contained in:
@@ -1010,6 +1010,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
|
||||
Action onStarted = () =>
|
||||
{
|
||||
timer.Status = RecordingStatus.InProgress;
|
||||
_timerProvider.AddOrUpdate(timer);
|
||||
|
||||
result.Item3.Release();
|
||||
isResourceOpen = false;
|
||||
};
|
||||
|
||||
@@ -1665,6 +1665,18 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
var results = await Task.WhenAll(tasks).ConfigureAwait(false);
|
||||
var timers = results.SelectMany(i => i.ToList());
|
||||
|
||||
if (query.IsActive.HasValue)
|
||||
{
|
||||
if (query.IsActive.Value)
|
||||
{
|
||||
timers = timers.Where(i => i.Item1.Status == RecordingStatus.InProgress);
|
||||
}
|
||||
else
|
||||
{
|
||||
timers = timers.Where(i => i.Item1.Status != RecordingStatus.InProgress);
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(query.ChannelId))
|
||||
{
|
||||
var guid = new Guid(query.ChannelId);
|
||||
|
||||
Reference in New Issue
Block a user