reduce traffic from session player

This commit is contained in:
Luke Pulverenti
2017-08-11 02:29:49 -04:00
parent 900714c866
commit a7db7cd40c
22 changed files with 73 additions and 259 deletions

View File

@@ -23,18 +23,6 @@ namespace MediaBrowser.Controller.Entities
PhysicalLocationsList = new List<string>();
}
/// <summary>
/// We don't support manual shortcuts
/// </summary>
[IgnoreDataMember]
protected override bool SupportsShortcutChildren
{
get
{
return false;
}
}
[IgnoreDataMember]
public override bool IsPhysicalRoot
{

View File

@@ -31,15 +31,6 @@ namespace MediaBrowser.Controller.Entities
PhysicalFolderIds = new List<Guid>();
}
[IgnoreDataMember]
protected override bool SupportsShortcutChildren
{
get
{
return true;
}
}
[IgnoreDataMember]
public override bool SupportsPlayedStatus
{

View File

@@ -22,8 +22,6 @@ namespace MediaBrowser.Controller.Entities.TV
{
public Series()
{
AirDays = new List<DayOfWeek>();
RemoteTrailers = EmptyMediaUrlArray;
LocalTrailerIds = EmptyGuidArray;
RemoteTrailerIds = EmptyGuidArray;
@@ -77,16 +75,6 @@ namespace MediaBrowser.Controller.Entities.TV
/// </summary>
/// <value>The status.</value>
public SeriesStatus? Status { get; set; }
/// <summary>
/// Gets or sets the air days.
/// </summary>
/// <value>The air days.</value>
public List<DayOfWeek> AirDays { get; set; }
/// <summary>
/// Gets or sets the air time.
/// </summary>
/// <value>The air time.</value>
public string AirTime { get; set; }
/// <summary>
/// Gets or sets the date last episode added.

View File

@@ -1674,15 +1674,6 @@ namespace MediaBrowser.Controller.Entities
}
}
if (query.AirDays.Length > 0)
{
var ok = new[] { item }.OfType<Series>().Any(p => p.AirDays != null && query.AirDays.Any(d => p.AirDays.Contains(d)));
if (!ok)
{
return false;
}
}
if (query.SeriesStatuses.Length > 0)
{
var ok = new[] { item }.OfType<Series>().Any(p => p.Status.HasValue && query.SeriesStatuses.Contains(p.Status.Value));