aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-16 16:26:49 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-08-16 16:26:49 -0400
commitf49417c703802a646910476dab38dc3f1adfb5c3 (patch)
tree1bc4907a2a196d9fcd7cce21d6b289eec9076a08 /MediaBrowser.Server.Implementations
parentee94d7b1f68b6ce492594e804eae72e0a57da48a (diff)
update series recordings
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs2
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs6
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs5
-rw-r--r--MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs2
4 files changed, 11 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
index 9ff8f7206..177a64ddc 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
@@ -220,7 +220,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
if (enableDelay)
{
// A hack yes, but need to make sure the file is closed before attempting to delete it
- await Task.Delay(3000).ConfigureAwait(false);
+ await Task.Delay(3000, cancellationToken).ConfigureAwait(false);
}
}
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs
index 9ffd8a500..2587b1005 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs
@@ -105,7 +105,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
ExternalProgramId = info.ProgramId,
ServiceName = service.Name,
ChannelName = channelName,
- ServerId = _appHost.SystemId
+ ServerId = _appHost.SystemId,
+ ExternalSeriesId = info.SeriesId
};
if (!string.IsNullOrEmpty(info.ChannelId))
@@ -376,7 +377,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
RecordNewOnly = dto.RecordNewOnly,
ProgramId = dto.ExternalProgramId,
ChannelId = dto.ExternalChannelId,
- Id = dto.ExternalId
+ Id = dto.ExternalId,
+ SeriesId = dto.ExternalSeriesId
};
// Convert internal server id's to external tv provider id's
diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
index 782473bea..9065a8ac2 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
@@ -627,6 +627,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
item.ProductionYear = info.ProductionYear;
item.PremiereDate = item.PremiereDate ?? info.OriginalAirDate;
+ item.ExternalSeriesId = info.SeriesId;
if (isNew)
{
@@ -1786,7 +1787,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
ImagePath = program.ProviderImagePath,
ImageUrl = program.ProviderImageUrl,
Name = program.Name,
- OfficialRating = program.OfficialRating
+ OfficialRating = program.OfficialRating,
+ SeriesId = program.ExternalSeriesId
};
}
@@ -1829,6 +1831,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
info.Overview = program.Overview;
info.ProgramId = programDto.Id;
info.ExternalProgramId = program.ExternalId;
+ info.ExternalSeriesId = program.ExternalSeriesId;
if (program.EndDate.HasValue)
{
diff --git a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs
index b09f8cfef..35f77abcb 100644
--- a/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs
+++ b/MediaBrowser.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs
@@ -326,6 +326,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
{
return list;
}
+ channelId = channelId.Substring(ChannelIdPrefix.Length);
list.Add(GetMediaSource(info, channelId, "native"));
@@ -358,6 +359,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
{
return null;
}
+ channelId = channelId.Substring(ChannelIdPrefix.Length);
return GetMediaSource(info, channelId, streamId);
}