Inherit custom rating

This commit is contained in:
Luke Pulverenti
2014-02-06 10:58:49 -05:00
parent ca0583bcbe
commit 38d88aed58
5 changed files with 32 additions and 27 deletions

View File

@@ -447,9 +447,23 @@ namespace MediaBrowser.Controller.Entities
}
[IgnoreDataMember]
public virtual string CustomRatingForComparison
public string CustomRatingForComparison
{
get { return CustomRating; }
get
{
if (!string.IsNullOrEmpty(CustomRating))
{
return CustomRating;
}
var parent = Parent;
if (parent != null)
{
return parent.CustomRatingForComparison;
}
return null;
}
}
/// <summary>