diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-08 00:25:21 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-08 00:25:21 -0500 |
| commit | 2e499c60e03b1568493be673c97dddc1324860ad (patch) | |
| tree | 8d880e5540d330681e49e5f968a8ec83097d8578 /MediaBrowser.Server.Implementations | |
| parent | ed87558e945ffe92a97a9c262a8edd0540d806fe (diff) | |
add new tab to series timer page
Diffstat (limited to 'MediaBrowser.Server.Implementations')
| -rw-r--r-- | MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs index d49410b4e..7dc210ccc 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs @@ -565,6 +565,16 @@ namespace MediaBrowser.Server.Implementations.LiveTv recordings = recordings.Where(i => (i.Status == RecordingStatus.InProgress) == val); } + if (!string.IsNullOrEmpty(query.SeriesTimerId)) + { + var guid = new Guid(query.SeriesTimerId); + + var currentServiceName = service.Name; + + recordings = recordings + .Where(i => _tvDtoService.GetInternalSeriesTimerId(currentServiceName, i.SeriesTimerId) == guid); + } + IEnumerable<ILiveTvRecording> entities = await GetEntities(recordings, service.Name, cancellationToken).ConfigureAwait(false); entities = entities.OrderByDescending(i => i.RecordingInfo.StartDate); @@ -640,6 +650,16 @@ namespace MediaBrowser.Server.Implementations.LiveTv timers = timers.Where(i => guid == _tvDtoService.GetInternalChannelId(service.Name, i.ChannelId)); } + if (!string.IsNullOrEmpty(query.SeriesTimerId)) + { + var guid = new Guid(query.SeriesTimerId); + + var currentServiceName = service.Name; + + timers = timers + .Where(i => _tvDtoService.GetInternalSeriesTimerId(currentServiceName, i.SeriesTimerId) == guid); + } + var returnArray = timers .Select(i => { |
