aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/BaseItem.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-09 13:18:37 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-11-09 13:18:37 -0500
commit81bb469fe1ba61d6ff39f6473e5d4beab1764e4e (patch)
treeb9f1906251e0d4be202744f920ac2f73b85f7602 /MediaBrowser.Controller/Entities/BaseItem.cs
parent7d7f9d765405e9b35675d6a8367eb46e852a6f2a (diff)
reduce image processing
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 5b0af42e8..d9b7b1ae7 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -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))