add new tab to series timer page

This commit is contained in:
Luke Pulverenti
2014-01-08 00:25:21 -05:00
parent ed87558e94
commit 2e499c60e0
3 changed files with 42 additions and 2 deletions

View File

@@ -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 =>
{