aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-26 21:31:54 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-26 21:31:54 -0400
commit5b21ec6747f5c1eef8b44ad8ead4f89ed715a501 (patch)
treee0d7d21a8eb6af3717ddbf5dee755b1461cfd62a /MediaBrowser.Server.Implementations/LiveTv
parentd4050fbf2cbec98306d3f39c2cf7b620147afdee (diff)
update interval trigger
Diffstat (limited to 'MediaBrowser.Server.Implementations/LiveTv')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index 708891e687..cb5a374010 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -438,8 +438,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
return lineups;
}
- _logger.Info("Headends on account ");
-
var options = new HttpRequestOptions()
{
Url = ApiUrl + "/headends?country=" + country + "&postalcode=" + location,
@@ -454,16 +452,13 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
using (Stream responce = await _httpClient.Get(options).ConfigureAwait(false))
{
var root = _jsonSerializer.DeserializeFromStream<List<ScheduleDirect.Headends>>(responce);
- _logger.Info("Lineups on account ");
+
if (root != null)
{
foreach (ScheduleDirect.Headends headend in root)
{
- _logger.Info("Headend: " + headend.headend);
foreach (ScheduleDirect.Lineup lineup in headend.lineups)
{
- _logger.Info("Headend: " + lineup.uri);
-
lineups.Add(new NameIdPair
{
Name = string.IsNullOrWhiteSpace(lineup.name) ? lineup.lineup : lineup.name,
@@ -474,7 +469,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
}
else
{
- _logger.Info("No lineups on account");
+ _logger.Info("No lineups available");
}
}
}