Merge pull request #2184 from MediaBrowser/dev

Dev
This commit is contained in:
Luke 2016-09-22 02:59:22 -04:00 committed by GitHub
commit 325c5f251b
7 changed files with 23 additions and 3 deletions

View File

@ -44,6 +44,7 @@ namespace MediaBrowser.Controller.Entities
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
LockedFields = new List<MetadataFields>(); LockedFields = new List<MetadataFields>();
ImageInfos = new List<ItemImageInfo>(); ImageInfos = new List<ItemImageInfo>();
InheritedTags = new List<string>();
} }
public static readonly char[] SlugReplaceChars = { '?', '/', '&' }; public static readonly char[] SlugReplaceChars = { '?', '/', '&' };
@ -794,6 +795,9 @@ namespace MediaBrowser.Controller.Entities
[IgnoreDataMember] [IgnoreDataMember]
public int InheritedParentalRatingValue { get; set; } public int InheritedParentalRatingValue { get; set; }
[IgnoreDataMember]
public List<string> InheritedTags { get; set; }
/// <summary> /// <summary>
/// Gets or sets the critic rating. /// Gets or sets the critic rating.
/// </summary> /// </summary>

View File

@ -64,5 +64,6 @@ namespace MediaBrowser.Controller.Entities
int? GetInheritedParentalRatingValue(); int? GetInheritedParentalRatingValue();
int InheritedParentalRatingValue { get; set; } int InheritedParentalRatingValue { get; set; }
List<string> GetInheritedTags(); List<string> GetInheritedTags();
List<string> InheritedTags { get; set; }
} }
} }

View File

@ -53,6 +53,10 @@ namespace MediaBrowser.Controller.LiveTv
/// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
public bool RecordAnyChannel { get; set; } public bool RecordAnyChannel { get; set; }
public int KeepUpTo { get; set; }
public bool SkipEpisodesInLibrary { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [record new only]. /// Gets or sets a value indicating whether [record new only].
/// </summary> /// </summary>
@ -104,6 +108,7 @@ namespace MediaBrowser.Controller.LiveTv
public SeriesTimerInfo() public SeriesTimerInfo()
{ {
Days = new List<DayOfWeek>(); Days = new List<DayOfWeek>();
SkipEpisodesInLibrary = true;
} }
} }
} }

View File

@ -18,12 +18,16 @@ namespace MediaBrowser.Model.LiveTv
/// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
public bool RecordAnyTime { get; set; } public bool RecordAnyTime { get; set; }
public bool SkipEpisodesInLibrary { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [record any channel]. /// Gets or sets a value indicating whether [record any channel].
/// </summary> /// </summary>
/// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
public bool RecordAnyChannel { get; set; } public bool RecordAnyChannel { get; set; }
public int KeepUpTo { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [record new only]. /// Gets or sets a value indicating whether [record new only].
/// </summary> /// </summary>

View File

@ -541,6 +541,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
instance.RecordAnyChannel = info.RecordAnyChannel; instance.RecordAnyChannel = info.RecordAnyChannel;
instance.RecordAnyTime = info.RecordAnyTime; instance.RecordAnyTime = info.RecordAnyTime;
instance.RecordNewOnly = info.RecordNewOnly; instance.RecordNewOnly = info.RecordNewOnly;
instance.SkipEpisodesInLibrary = info.SkipEpisodesInLibrary;
instance.KeepUpTo = info.KeepUpTo;
instance.StartDate = info.StartDate; instance.StartDate = info.StartDate;
_seriesTimerProvider.Update(instance); _seriesTimerProvider.Update(instance);
@ -1381,7 +1383,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
allPrograms = GetProgramsForSeries(seriesTimer, allPrograms); allPrograms = GetProgramsForSeries(seriesTimer, allPrograms);
if (filterByCurrentRecordings) if (filterByCurrentRecordings && seriesTimer.SkipEpisodesInLibrary)
{ {
allPrograms = allPrograms.Where(i => !IsProgramAlreadyInLibrary(i)); allPrograms = allPrograms.Where(i => !IsProgramAlreadyInLibrary(i));
} }

View File

@ -100,6 +100,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
Priority = info.Priority, Priority = info.Priority,
RecordAnyChannel = info.RecordAnyChannel, RecordAnyChannel = info.RecordAnyChannel,
RecordAnyTime = info.RecordAnyTime, RecordAnyTime = info.RecordAnyTime,
SkipEpisodesInLibrary = info.SkipEpisodesInLibrary,
KeepUpTo = info.KeepUpTo,
RecordNewOnly = info.RecordNewOnly, RecordNewOnly = info.RecordNewOnly,
ExternalChannelId = info.ChannelId, ExternalChannelId = info.ChannelId,
ExternalProgramId = info.ProgramId, ExternalProgramId = info.ProgramId,
@ -308,6 +310,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
Priority = dto.Priority, Priority = dto.Priority,
RecordAnyChannel = dto.RecordAnyChannel, RecordAnyChannel = dto.RecordAnyChannel,
RecordAnyTime = dto.RecordAnyTime, RecordAnyTime = dto.RecordAnyTime,
SkipEpisodesInLibrary = dto.SkipEpisodesInLibrary,
KeepUpTo = dto.KeepUpTo,
RecordNewOnly = dto.RecordNewOnly, RecordNewOnly = dto.RecordNewOnly,
ProgramId = dto.ExternalProgramId, ProgramId = dto.ExternalProgramId,
ChannelId = dto.ExternalChannelId, ChannelId = dto.ExternalChannelId,

View File

@ -851,12 +851,12 @@ namespace MediaBrowser.Server.Startup.Common
{ {
var prefixes = new List<string> var prefixes = new List<string>
{ {
"http://"+i+":" + ServerConfigurationManager.Configuration.HttpServerPortNumber + "/" "http://"+i+":" + HttpPort + "/"
}; };
if (!string.IsNullOrWhiteSpace(CertificatePath)) if (!string.IsNullOrWhiteSpace(CertificatePath))
{ {
prefixes.Add("https://" + i + ":" + ServerConfigurationManager.Configuration.HttpsPortNumber + "/"); prefixes.Add("https://" + i + ":" + HttpsPort + "/");
} }
return prefixes; return prefixes;