mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 02:33:33 +01:00
Inherit custom rating
This commit is contained in:
@@ -447,9 +447,23 @@ namespace MediaBrowser.Controller.Entities
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
public virtual string CustomRatingForComparison
|
||||
public string CustomRatingForComparison
|
||||
{
|
||||
get { return CustomRating; }
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrEmpty(CustomRating))
|
||||
{
|
||||
return CustomRating;
|
||||
}
|
||||
|
||||
var parent = Parent;
|
||||
if (parent != null)
|
||||
{
|
||||
return parent.CustomRatingForComparison;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user