update DisplayParent

This commit is contained in:
Luke Pulverenti
2016-04-09 00:16:53 -04:00
parent a95cbac076
commit 2ec515027f
11 changed files with 67 additions and 350 deletions

View File

@@ -90,11 +90,11 @@ namespace MediaBrowser.Controller.Entities.TV
}
[IgnoreDataMember]
public override BaseItem DisplayParent
public override Guid? DisplayParentId
{
get
{
return Season ?? GetParent();
return SeasonId;
}
}

View File

@@ -33,9 +33,13 @@ namespace MediaBrowser.Controller.Entities.TV
}
[IgnoreDataMember]
public override BaseItem DisplayParent
public override Guid? DisplayParentId
{
get { return Series ?? GetParent(); }
get
{
var series = Series;
return series == null ? ParentId : series.Id;
}
}
// Genre, Rating and Stuido will all be the same