aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-17 15:51:29 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-17 15:51:29 -0500
commitfb335141fb9cb2b2ed626e2ffb555fccb26b3edf (patch)
tree57d621fddd079d8821f1e1fe96d75665d65175d5 /MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
parent33d99575940ac97574d328ab9c6143bb3ccb9e8e (diff)
display tv service version info
Diffstat (limited to 'MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index 2d91222c1..8577e7510 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -409,9 +409,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
var channel = GetChannel(program);
- var channelName = channel == null ? null : channel.ChannelInfo.Name;
-
- var dto = _tvDtoService.GetProgramInfoDto(program, channelName, user);
+ var dto = _tvDtoService.GetProgramInfoDto(program, channel, user);
await AddRecordingInfo(new[] { dto }, cancellationToken).ConfigureAwait(false);
@@ -479,9 +477,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
{
var channel = GetChannel(i);
- var channelName = channel == null ? null : channel.ChannelInfo.Name;
-
- return _tvDtoService.GetProgramInfoDto(i, channelName, user);
+ return _tvDtoService.GetProgramInfoDto(i, channel, user);
})
.ToArray();
@@ -541,9 +537,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
{
var channel = GetChannel(i);
- var channelName = channel == null ? null : channel.ChannelInfo.Name;
-
- return _tvDtoService.GetProgramInfoDto(i, channelName, user);
+ return _tvDtoService.GetProgramInfoDto(i, channel, user);
})
.ToArray();
@@ -1342,6 +1336,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv
info.Status = statusInfo.Status;
info.StatusMessage = statusInfo.StatusMessage;
+ info.Version = statusInfo.Version;
+ info.HasUpdateAvailable = statusInfo.HasUpdateAvailable;
+ info.HomePageUrl = service.HomePageUrl;
}
catch (Exception ex)
{