Inherit ratings for episodes and seasons from series

This commit is contained in:
Eric Reed
2013-03-26 20:28:07 -04:00
parent 4b3d5651e9
commit c309ff653a
3 changed files with 50 additions and 2 deletions

View File

@@ -117,6 +117,30 @@ namespace MediaBrowser.Controller.Entities.TV
}
}
/// <summary>
/// Our rating comes from our series
/// </summary>
public override string OfficialRating
{
get { return Series != null ? Series.OfficialRating : base.OfficialRating; }
set
{
base.OfficialRating = value;
}
}
/// <summary>
/// Our rating comes from our series
/// </summary>
public override string CustomRating
{
get { return Series != null ? Series.CustomRating : base.CustomRating; }
set
{
base.CustomRating = value;
}
}
/// <summary>
/// We persist the MB Id of our series object so we can always find it no matter
/// what context we happen to be loaded from.

View File

@@ -111,6 +111,30 @@ namespace MediaBrowser.Controller.Entities.TV
get { return _series ?? (_series = FindParent<Series>()); }
}
/// <summary>
/// Our rating comes from our series
/// </summary>
public override string OfficialRating
{
get { return Series != null ? Series.OfficialRating : base.OfficialRating; }
set
{
base.OfficialRating = value;
}
}
/// <summary>
/// Our rating comes from our series
/// </summary>
public override string CustomRating
{
get { return Series != null ? Series.CustomRating : base.CustomRating; }
set
{
base.CustomRating = value;
}
}
/// <summary>
/// Add files from the metadata folder to ResolveArgs
/// </summary>