From 7ef1816b340d273280effa18fe7543d13baf9c8a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 29 Nov 2013 15:10:31 -0500 Subject: [PATCH] add links to channel pages --- .../LiveTv/LiveTvManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs index 688a4cc64..dc68670d2 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs @@ -213,9 +213,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv }; } - private Guid GetInternalChannelId(string serviceName, string externalChannelId) + private Guid GetInternalChannelId(string serviceName, string externalChannelId, string channelName) { - var name = serviceName + externalChannelId; + var name = serviceName + externalChannelId + channelName; return name.ToLower().GetMBId(typeof(Channel)); } @@ -248,7 +248,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv isNew = true; } - var id = GetInternalChannelId(serviceName, channelInfo.Id); + var id = GetInternalChannelId(serviceName, channelInfo.Id, channelInfo.Name); var item = _itemRepo.RetrieveItem(id) as Channel; @@ -399,7 +399,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv StartDate = info.StartDate, Id = id, ExternalId = info.Id, - ChannelId = GetInternalChannelId(service.Name, info.ChannelId).ToString("N"), + ChannelId = GetInternalChannelId(service.Name, info.ChannelId, info.ChannelName).ToString("N"), Status = info.Status }; @@ -512,7 +512,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv StartDate = info.StartDate, Id = id, ExternalId = info.Id, - ChannelId = GetInternalChannelId(service.Name, info.ChannelId).ToString("N"), + ChannelId = GetInternalChannelId(service.Name, info.ChannelId, info.ChannelName).ToString("N"), Status = info.Status, IsRecurring = info.IsRecurring };