reduce image processing

This commit is contained in:
Luke Pulverenti
2015-11-09 13:18:37 -05:00
parent 7d7f9d7654
commit 81bb469fe1
14 changed files with 139 additions and 443 deletions

View File

@@ -690,9 +690,10 @@ namespace MediaBrowser.Controller.Entities
[IgnoreDataMember]
public int? ParentIndexNumber { get; set; }
public virtual string GetOfficialRatingForComparison(bool inherit)
[IgnoreDataMember]
public string OfficialRatingForComparison
{
if (inherit)
get
{
if (!string.IsNullOrWhiteSpace(OfficialRating))
{
@@ -702,13 +703,11 @@ namespace MediaBrowser.Controller.Entities
var parent = DisplayParent;
if (parent != null)
{
return parent.GetOfficialRatingForComparison(inherit);
return parent.OfficialRatingForComparison;
}
return null;
}
return OfficialRating;
}
[IgnoreDataMember]
@@ -1141,7 +1140,7 @@ namespace MediaBrowser.Controller.Entities
if (string.IsNullOrWhiteSpace(rating))
{
rating = GetOfficialRatingForComparison(true);
rating = OfficialRatingForComparison;
}
if (string.IsNullOrWhiteSpace(rating))
@@ -1190,7 +1189,7 @@ namespace MediaBrowser.Controller.Entities
if (string.IsNullOrWhiteSpace(rating))
{
rating = GetOfficialRatingForComparison(true);
rating = OfficialRatingForComparison;
}
if (string.IsNullOrWhiteSpace(rating))