update series recordings

This commit is contained in:
Luke Pulverenti 2015-08-16 16:26:49 -04:00
parent ee94d7b1f6
commit f49417c703
6 changed files with 26 additions and 4 deletions

View File

@ -60,6 +60,12 @@ namespace MediaBrowser.Controller.LiveTv
/// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
public bool IsRepeat { get; set; } public bool IsRepeat { get; set; }
/// <summary>
/// Gets or sets the external series identifier.
/// </summary>
/// <value>The external series identifier.</value>
public string ExternalSeriesId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the episode title. /// Gets or sets the episode title.
/// </summary> /// </summary>

View File

@ -6,6 +6,9 @@ using System.Runtime.Serialization;
namespace MediaBrowser.Model.LiveTv namespace MediaBrowser.Model.LiveTv
{ {
/// <summary>
/// Class SeriesTimerInfoDto.
/// </summary>
[DebuggerDisplay("Name = {Name}")] [DebuggerDisplay("Name = {Name}")]
public class SeriesTimerInfoDto : BaseTimerInfoDto public class SeriesTimerInfoDto : BaseTimerInfoDto
{ {
@ -45,6 +48,12 @@ namespace MediaBrowser.Model.LiveTv
/// <value>The image tags.</value> /// <value>The image tags.</value>
public Dictionary<ImageType, string> ImageTags { get; set; } public Dictionary<ImageType, string> ImageTags { get; set; }
/// <summary>
/// Gets or sets the external series identifier.
/// </summary>
/// <value>The external series identifier.</value>
public string ExternalSeriesId { get; set; }
/// <summary> /// <summary>
/// Gets a value indicating whether this instance has primary image. /// Gets a value indicating whether this instance has primary image.
/// </summary> /// </summary>

View File

@ -220,7 +220,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
if (enableDelay) if (enableDelay)
{ {
// A hack yes, but need to make sure the file is closed before attempting to delete it // 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);
} }
} }

View File

@ -105,7 +105,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
ExternalProgramId = info.ProgramId, ExternalProgramId = info.ProgramId,
ServiceName = service.Name, ServiceName = service.Name,
ChannelName = channelName, ChannelName = channelName,
ServerId = _appHost.SystemId ServerId = _appHost.SystemId,
ExternalSeriesId = info.SeriesId
}; };
if (!string.IsNullOrEmpty(info.ChannelId)) if (!string.IsNullOrEmpty(info.ChannelId))
@ -376,7 +377,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
RecordNewOnly = dto.RecordNewOnly, RecordNewOnly = dto.RecordNewOnly,
ProgramId = dto.ExternalProgramId, ProgramId = dto.ExternalProgramId,
ChannelId = dto.ExternalChannelId, ChannelId = dto.ExternalChannelId,
Id = dto.ExternalId Id = dto.ExternalId,
SeriesId = dto.ExternalSeriesId
}; };
// Convert internal server id's to external tv provider id's // Convert internal server id's to external tv provider id's

View File

@ -627,6 +627,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
item.ProductionYear = info.ProductionYear; item.ProductionYear = info.ProductionYear;
item.PremiereDate = item.PremiereDate ?? info.OriginalAirDate; item.PremiereDate = item.PremiereDate ?? info.OriginalAirDate;
item.ExternalSeriesId = info.SeriesId;
if (isNew) if (isNew)
{ {
@ -1786,7 +1787,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
ImagePath = program.ProviderImagePath, ImagePath = program.ProviderImagePath,
ImageUrl = program.ProviderImageUrl, ImageUrl = program.ProviderImageUrl,
Name = program.Name, 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.Overview = program.Overview;
info.ProgramId = programDto.Id; info.ProgramId = programDto.Id;
info.ExternalProgramId = program.ExternalId; info.ExternalProgramId = program.ExternalId;
info.ExternalSeriesId = program.ExternalSeriesId;
if (program.EndDate.HasValue) if (program.EndDate.HasValue)
{ {

View File

@ -326,6 +326,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
{ {
return list; return list;
} }
channelId = channelId.Substring(ChannelIdPrefix.Length);
list.Add(GetMediaSource(info, channelId, "native")); list.Add(GetMediaSource(info, channelId, "native"));
@ -358,6 +359,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.HdHomerun
{ {
return null; return null;
} }
channelId = channelId.Substring(ChannelIdPrefix.Length);
return GetMediaSource(info, channelId, streamId); return GetMediaSource(info, channelId, streamId);
} }