mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
commit
325c5f251b
@ -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>
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user