aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/TV/Episode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities/TV/Episode.cs')
-rw-r--r--MediaBrowser.Controller/Entities/TV/Episode.cs21
1 files changed, 9 insertions, 12 deletions
diff --git a/MediaBrowser.Controller/Entities/TV/Episode.cs b/MediaBrowser.Controller/Entities/TV/Episode.cs
index 73726a4e28..c1535bde02 100644
--- a/MediaBrowser.Controller/Entities/TV/Episode.cs
+++ b/MediaBrowser.Controller/Entities/TV/Episode.cs
@@ -98,9 +98,11 @@ namespace MediaBrowser.Controller.Entities.TV
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
- if (Series != null && ParentIndexNumber.HasValue && IndexNumber.HasValue)
+ var series = Series;
+
+ if (series != null && ParentIndexNumber.HasValue && IndexNumber.HasValue)
{
- return Series.GetUserDataKey() + ParentIndexNumber.Value.ToString("000") + IndexNumber.Value.ToString("000");
+ return series.GetUserDataKey() + ParentIndexNumber.Value.ToString("000") + IndexNumber.Value.ToString("000");
}
return base.GetUserDataKey();
@@ -112,16 +114,11 @@ namespace MediaBrowser.Controller.Entities.TV
[IgnoreDataMember]
public override string OfficialRatingForComparison
{
- get { return Series != null ? Series.OfficialRatingForComparison : base.OfficialRatingForComparison; }
- }
-
- /// <summary>
- /// Our rating comes from our series
- /// </summary>
- [IgnoreDataMember]
- public override string CustomRatingForComparison
- {
- get { return Series != null ? Series.CustomRatingForComparison : base.CustomRatingForComparison; }
+ get
+ {
+ var series = Series;
+ return series != null ? series.OfficialRatingForComparison : base.OfficialRatingForComparison;
+ }
}
/// <summary>