Inherit ratings for episodes and seasons from series
This commit is contained in:
parent
4b3d5651e9
commit
c309ff653a
|
@ -500,13 +500,13 @@ namespace MediaBrowser.Controller.Entities
|
||||||
/// Gets or sets the official rating.
|
/// Gets or sets the official rating.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The official rating.</value>
|
/// <value>The official rating.</value>
|
||||||
public string OfficialRating { get; set; }
|
public virtual string OfficialRating { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the custom rating.
|
/// Gets or sets the custom rating.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The custom rating.</value>
|
/// <value>The custom rating.</value>
|
||||||
public string CustomRating { get; set; }
|
public virtual string CustomRating { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the language.
|
/// Gets or sets the language.
|
||||||
|
|
|
@ -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>
|
/// <summary>
|
||||||
/// We persist the MB Id of our series object so we can always find it no matter
|
/// 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.
|
/// what context we happen to be loaded from.
|
||||||
|
|
|
@ -111,6 +111,30 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||||
get { return _series ?? (_series = FindParent<Series>()); }
|
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>
|
/// <summary>
|
||||||
/// Add files from the metadata folder to ResolveArgs
|
/// Add files from the metadata folder to ResolveArgs
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user