mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
account for unaired physical episodes
This commit is contained in:
@@ -203,7 +203,12 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
|
||||
public bool IsUnaired
|
||||
{
|
||||
get { return LocationType == Model.Entities.LocationType.Virtual && PremiereDate.HasValue && PremiereDate.Value >= DateTime.UtcNow; }
|
||||
get { return PremiereDate.HasValue && PremiereDate.Value >= DateTime.UtcNow; }
|
||||
}
|
||||
|
||||
public bool IsVirtualUnaired
|
||||
{
|
||||
get { return LocationType == Model.Entities.LocationType.Virtual && IsUnaired; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,12 +156,17 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
|
||||
public bool IsUnaired
|
||||
{
|
||||
get { return LocationType == Model.Entities.LocationType.Virtual && Children.OfType<Episode>().All(i => i.IsUnaired); }
|
||||
get { return Children.OfType<Episode>().All(i => i.IsUnaired); }
|
||||
}
|
||||
|
||||
public bool IsMissingOrUnaired
|
||||
public bool IsVirtualUnaired
|
||||
{
|
||||
get { return LocationType == Model.Entities.LocationType.Virtual && Children.OfType<Episode>().All(i => i.IsUnaired || i.IsMissingEpisode); }
|
||||
get { return LocationType == Model.Entities.LocationType.Virtual && IsUnaired; }
|
||||
}
|
||||
|
||||
public bool IsMissingOrVirtualUnaired
|
||||
{
|
||||
get { return LocationType == Model.Entities.LocationType.Virtual && Children.OfType<Episode>().All(i => i.IsVirtualUnaired || i.IsMissingEpisode); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user