mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
update seasons
This commit is contained in:
parent
92b0f52760
commit
03687d9420
1 changed files with 7 additions and 2 deletions
|
@ -149,13 +149,18 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public bool IsMissingSeason
|
public bool IsMissingSeason
|
||||||
{
|
{
|
||||||
get { return (IsVirtualItem ?? false) && !IsUnaired; }
|
get { return (IsVirtualItem ?? DetectIsVirtualItem()) && !IsUnaired; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public bool IsVirtualUnaired
|
public bool IsVirtualUnaired
|
||||||
{
|
{
|
||||||
get { return (IsVirtualItem ?? false) && IsUnaired; }
|
get { return (IsVirtualItem ?? DetectIsVirtualItem()) && IsUnaired; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool DetectIsVirtualItem()
|
||||||
|
{
|
||||||
|
return LocationType == LocationType.Virtual && GetEpisodes().All(i => i.LocationType == LocationType.Virtual);
|
||||||
}
|
}
|
||||||
|
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
|
|
Loading…
Reference in a new issue