aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/BaseItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs32
1 files changed, 28 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 35639925d..ab30d9ef7 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -469,7 +469,7 @@ namespace MediaBrowser.Controller.Entities
/// Gets or sets the official rating.
/// </summary>
/// <value>The official rating.</value>
- public virtual string OfficialRating { get; set; }
+ public string OfficialRating { get; set; }
/// <summary>
/// Gets or sets the official rating description.
@@ -481,7 +481,7 @@ namespace MediaBrowser.Controller.Entities
/// Gets or sets the custom rating.
/// </summary>
/// <value>The custom rating.</value>
- public virtual string CustomRating { get; set; }
+ public string CustomRating { get; set; }
/// <summary>
/// Gets or sets the language.
@@ -521,6 +521,18 @@ namespace MediaBrowser.Controller.Entities
get { return People; }
}
+ [IgnoreDataMember]
+ public virtual IEnumerable<string> AllStudios
+ {
+ get { return Studios; }
+ }
+
+ [IgnoreDataMember]
+ public virtual IEnumerable<string> AllGenres
+ {
+ get { return Genres; }
+ }
+
/// <summary>
/// Gets or sets the studios.
/// </summary>
@@ -620,6 +632,18 @@ namespace MediaBrowser.Controller.Entities
public List<Guid> ThemeVideoIds { get; set; }
public List<Guid> LocalTrailerIds { get; set; }
+ [IgnoreDataMember]
+ public virtual string OfficialRatingForComparison
+ {
+ get { return OfficialRating; }
+ }
+
+ [IgnoreDataMember]
+ public virtual string CustomRatingForComparison
+ {
+ get { return CustomRating; }
+ }
+
/// <summary>
/// Loads local trailers from the file system
/// </summary>
@@ -992,11 +1016,11 @@ namespace MediaBrowser.Controller.Entities
return true;
}
- var rating = CustomRating;
+ var rating = CustomRatingForComparison;
if (string.IsNullOrEmpty(rating))
{
- rating = OfficialRating;
+ rating = OfficialRatingForComparison;
}
if (string.IsNullOrEmpty(rating))