aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-10 12:45:04 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-10 12:45:04 -0400
commit3ba9d3c12f71208cb45d58b93b7c472780a5d541 (patch)
treecfdb82a1ef3201dcee871571224479f53386c1cd /MediaBrowser.Server.Implementations/LiveTv
parentb0c1ba1e1961783975a5231f801733553bee9faf (diff)
update channel mapping
Diffstat (limited to 'MediaBrowser.Server.Implementations/LiveTv')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index 6443440c81..e37109c148 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -879,6 +879,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
throw new Exception("ListingsId required");
}
+ await AddMetadata(info, new List<ChannelInfo>(), cancellationToken).ConfigureAwait(false);
+
var token = await GetToken(info, cancellationToken);
if (string.IsNullOrWhiteSpace(token))
@@ -886,8 +888,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
throw new Exception("token required");
}
- ClearPairCache(listingsId);
-
var httpOptions = new HttpRequestOptions()
{
Url = ApiUrl + "/lineups/" + listingsId,
@@ -921,10 +921,18 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
}
channelNumber = channelNumber.TrimStart('0');
+ var name = channelNumber;
+ var station = GetStation(listingsId, channelNumber, null);
+
+ if (station != null)
+ {
+ name = station.name;
+ }
+
list.Add(new ChannelInfo
{
Number = channelNumber,
- Name = map.channel
+ Name = name
});
}
}